mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-23 02:35:18 +01:00
Debug & Minecart hotfix
This commit is contained in:
parent
1455209cf3
commit
bffe48a5b9
@ -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;
|
||||||
|
|
||||||
|
@ -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")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user