mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-10-03 00:47:32 +02:00
Removed debug messages
This commit is contained in:
parent
ed9126d278
commit
1ec1528af6
@ -135,16 +135,6 @@ public class Interact implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
||||||
|
|
||||||
System.out.println("1st Condition: " + (stackableManager != null));
|
|
||||||
System.out.println("2nd Condition: " + (stackableManager != null && stackableManager.isStackableMaterial(event.getMaterial())));
|
|
||||||
System.out.println("3rd Condition: " + (event.getClickedBlock().getType() == event.getMaterial()));
|
|
||||||
System.out.println("4th Condition: " + (!player.isSneaking()));
|
|
||||||
System.out.println("5th Condition: "
|
|
||||||
+ ((!skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "config.yml")).getFileConfiguration().getBoolean("Island.Stackable.RequirePermission")
|
|
||||||
|| player.hasPermission("fabledskyblock.stackable"))));
|
|
||||||
System.out.println("All must be true.");
|
|
||||||
|
|
||||||
if (stackableManager != null && stackableManager.isStackableMaterial(event.getMaterial()) && event.getClickedBlock().getType() == event.getMaterial() && !player.isSneaking()
|
if (stackableManager != null && stackableManager.isStackableMaterial(event.getMaterial()) && event.getClickedBlock().getType() == event.getMaterial() && !player.isSneaking()
|
||||||
&& islandManager.hasPermission(player, block.getLocation(), "Place")
|
&& islandManager.hasPermission(player, block.getLocation(), "Place")
|
||||||
&& (!skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "config.yml")).getFileConfiguration().getBoolean("Island.Stackable.RequirePermission")
|
&& (!skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "config.yml")).getFileConfiguration().getBoolean("Island.Stackable.RequirePermission")
|
||||||
@ -183,10 +173,8 @@ public class Interact implements Listener {
|
|||||||
if (stackable == null) {
|
if (stackable == null) {
|
||||||
stackableManager.addStack(stackable = new Stackable(location, event.getMaterial()));
|
stackableManager.addStack(stackable = new Stackable(location, event.getMaterial()));
|
||||||
stackable.setSize(itemAmount + 1);
|
stackable.setSize(itemAmount + 1);
|
||||||
System.out.println("Stack is null. Creating");
|
|
||||||
} else {
|
} else {
|
||||||
stackable.setSize(stackable.getSize() + itemAmount);
|
stackable.setSize(stackable.getSize() + itemAmount);
|
||||||
System.out.println("Incrementing stack count.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user