mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 12:36:40 +00:00
What are the dud BlockCategories?
This commit is contained in:
@ -1026,7 +1026,7 @@ public class LocalSession implements TextureHolder {
|
||||
|
||||
public void setTool(BaseItem item, @Nullable Tool tool, Player player) throws InvalidToolBindException {
|
||||
ItemTypes type = item.getType();
|
||||
if (type.hasBlockType() && type.getBlockType() != BlockTypes.AIR) {
|
||||
if (!type.hasBlockType() && type.getBlockType().getMaterial().isAir()) {
|
||||
throw new InvalidToolBindException(type, "Blocks can't be used");
|
||||
} else if (type == config.wandItem) {
|
||||
throw new InvalidToolBindException(type, "Already used for the wand");
|
||||
|
Reference in New Issue
Block a user