Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove block ID usage #234

Merged
merged 3 commits into from Dec 19, 2017
Merged

Remove block ID usage #234

merged 3 commits into from Dec 19, 2017

Conversation

md-5
Copy link

@md-5 md-5 commented Dec 6, 2017

NB AutoExtendClaimTask a bit broken

Copy link

@RoboMWM RoboMWM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, pretty sure there was some block ID stuff in this conglomeration. I'll see if I have time to test by next week, otherwise the week after.

What's the issue with AutoExtendClaimTask? Or is it just not fully converted over?

@@ -1952,33 +1952,6 @@ else if(materialInHand == instance.config_claims_investigationTool && hand == E
return;
}

//if holding a non-vanilla item
else if(Material.getMaterial(itemInHand.getTypeId()) == null)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, getType won't return null for non-vanilla items? Just wondering since I'm sure this is here to semi-support mods (though, I'm guessing there's probably no up-to-date bukkit/forge hybrid thing out there today).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well Bukkit doesn’t have any way to represent non vanilla items.
Based on this code I’m assuming Cauldron was returning null for non vanilla items, but I really can’t be sure. Either way it’s not something supported via the Bukkit API

@RoboMWM RoboMWM added this to the 16.8 milestone Dec 6, 2017
@md-5
Copy link
Author

md-5 commented Dec 6, 2017

Bukkit doesn’t yet have an ID free snapshot method (and chunk snapshots aren’t implemented in dev builds anyway).
Will probably add at least a Material one to 1.12.2 for compat

@md-5
Copy link
Author

md-5 commented Dec 6, 2017

Claim task has been fixed, requires very recent 1.12.2 though

Copy link

@RoboMWM RoboMWM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks again

@RoboMWM RoboMWM merged commit 8040a17 into GriefPrevention:master Dec 19, 2017
@RoboMWM RoboMWM mentioned this pull request Jan 15, 2018
Minidodo1 pushed a commit to Minidodo1/GriefPrevention that referenced this pull request Jun 14, 2018
Also updates AutoExtendClaimTask with new API, will need to ensure users are using a recent build of CB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants