Fix stacking minecarts

This commit is contained in:
TadahTech 2016-08-25 03:58:39 -05:00
parent 41b40fa12c
commit 19cfcc414b

View File

@ -32,6 +32,7 @@ import org.bukkit.entity.EnderDragon;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Horse;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Minecart;
import org.bukkit.entity.Player;
import org.bukkit.entity.Wither;
import org.bukkit.event.EventHandler;
@ -89,7 +90,12 @@ public class StackerManager extends MiniPlugin implements IThrown
{
return;
}
if(stackee instanceof Minecart)
{
return;
}
Player stacker = event.getPlayer();
if (stacker.getGameMode() != GameMode.SURVIVAL)