Permalink
Browse files

Don't remove boats that aren't empty with the ExitRemover.

  • Loading branch information...
me4502 committed Feb 9, 2019
1 parent c58d7dc commit a2a82fe9fd86bd9616e645ed48b515d7f63a8b80
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/mechanics/boat/ExitRemover.java
@@ -40,7 +40,7 @@ public void onVehicleExit(VehicleExitEvent event) {
@Override
public void run () {

if(!boat.isValid() || boat.isDead()) return;
if(!boat.isValid() || boat.isDead() || !boat.isEmpty()) return;

if(giveItem) {
ItemStack stack = new ItemStack(ItemUtil.getBoatFromTree(boat.getWoodType()), 1);

0 comments on commit a2a82fe

Please sign in to comment.