Fix DOUBLE SPACE

This commit is contained in:
Sam 2018-01-17 23:00:35 +00:00 committed by Alexander Meech
parent be7ca772f2
commit edc1f5a9fd
2 changed files with 3 additions and 4 deletions

View File

@ -141,8 +141,6 @@ public abstract class Skywars extends Game
.register(this); .register(this);
manager.GetCreature().SetDisableCustomDrops(true); manager.GetCreature().SetDisableCustomDrops(true);
registerStatTrackers();
} }
@Override @Override

View File

@ -17,6 +17,7 @@ import org.bukkit.inventory.ItemStack;
import mineplex.core.common.util.C; import mineplex.core.common.util.C;
import mineplex.core.common.util.UtilAction; import mineplex.core.common.util.UtilAction;
import mineplex.core.common.util.UtilBlock;
import mineplex.core.common.util.UtilEvent; import mineplex.core.common.util.UtilEvent;
import mineplex.core.common.util.UtilEvent.ActionType; import mineplex.core.common.util.UtilEvent.ActionType;
import mineplex.core.common.util.UtilInv; import mineplex.core.common.util.UtilInv;
@ -47,7 +48,7 @@ public class ThrowableTNTModule extends Module
if (_throwAndDrop) if (_throwAndDrop)
{ {
builder.setTitle(C.cYellowB + "Left Click - Throw" + C.cWhite + " / " + C.cYellowB + " Right Click - Drop"); builder.setTitle(C.cYellowB + "Left Click - Throw" + C.cWhite + " / " + C.cYellowB + "Right Click - Drop");
} }
else else
{ {
@ -91,7 +92,7 @@ public class ThrowableTNTModule extends Module
Player player = event.getPlayer(); Player player = event.getPlayer();
ItemStack itemStack = player.getItemInHand(); ItemStack itemStack = player.getItemInHand();
if (UtilPlayer.isSpectator(player) || itemStack == null || itemStack.getType() != Material.TNT) if (UtilPlayer.isSpectator(player) || itemStack == null || itemStack.getType() != Material.TNT || UtilBlock.usable(event.getClickedBlock()))
{ {
return; return;
} }