@@ -16,11 +16,11 @@
|
||||
|
||||
entityboat.setType(this.b);
|
||||
@@ -49,7 +57,7 @@
|
||||
return new InteractionResultWrapper<>(EnumInteractionResult.FAIL, itemstack);
|
||||
return InteractionResultWrapper.d(itemstack);
|
||||
} else {
|
||||
if (!world.isClientSide) {
|
||||
- world.addEntity(entityboat);
|
||||
+ if (!world.addEntity(entityboat)) return new InteractionResultWrapper(EnumInteractionResult.PASS, itemstack); // CraftBukkit
|
||||
}
|
||||
|
||||
if (!entityhuman.abilities.canInstantlyBuild) {
|
||||
if (!entityhuman.abilities.canInstantlyBuild) {
|
||||
itemstack.subtract(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user