Fix stacking minecarts
This commit is contained in:
parent
41b40fa12c
commit
19cfcc414b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user