Debug & Minecart hotfix

This commit is contained in:
Esophose 2019-06-04 05:23:30 -06:00
parent 1455209cf3
commit bffe48a5b9
2 changed files with 6 additions and 1 deletions

View File

@ -45,6 +45,12 @@ public class HopperListeners implements Listener {
return; return;
} }
// Hopper going into minecarts
if (destination.getHolder() instanceof Minecart && source.getHolder() instanceof org.bukkit.block.Hopper) {
event.setCancelled(true);
return;
}
if (instance.isLiquidtanks() && net.arcaniax.liquidtanks.object.LiquidTankAPI.isLiquidTank(event.getDestination().getLocation())) if (instance.isLiquidtanks() && net.arcaniax.liquidtanks.object.LiquidTankAPI.isLiquidTank(event.getDestination().getLocation()))
return; return;

View File

@ -53,7 +53,6 @@ public class Serializers {
} }
for (String str : strings) { for (String str : strings) {
args = str.split(":", 2); args = str.split(":", 2);
Bukkit.broadcastMessage(Arrays.toString(args));
if (isNumber(args[0])) item.setAmount(Integer.parseInt(args[0])); if (isNumber(args[0])) item.setAmount(Integer.parseInt(args[0]));
if (args.length == 1) continue; if (args.length == 1) continue;
if (args[0].equalsIgnoreCase("name")) { if (args[0].equalsIgnoreCase("name")) {