1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Removed debug prints

This commit is contained in:
Redemption 2018-01-03 16:36:40 +01:00 committed by GitHub
parent ffc9de3f7c
commit fefd3b1fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -732,11 +732,9 @@ public abstract class ProgrammableAndroid extends SlimefunItem {
Collection<ItemStack> drops = block.getDrops();
if (!blockblacklist.contains(block.getType()) && !drops.isEmpty() && CSCoreLib.getLib().getProtectionManager().canBuild(UUID.fromString(BlockStorage.getBlockInfo(b, "owner")), block)) {
try {
System.out.println("DEBUG: " + item);
if(item != null) {
if(fits(b, BlockStorage.retrieve(block))) {
pushItems(b, BlockStorage.retrieve(block));
System.out.println("DEBUG: IF I'm HERE");
if(SlimefunItem.blockhandler.containsKey(item.getID())) SlimefunItem.blockhandler.get(item.getID()).onBreak(null, block, item, UnregisterReason.ANDROID_DIG);
block.getWorld().playEffect(block.getLocation(), Effect.STEP_SOUND, block.getType());
@ -755,7 +753,6 @@ public abstract class ProgrammableAndroid extends SlimefunItem {
ItemStack[] items = drops.toArray(new ItemStack[drops.size()]);
if (fits(b, items)) {
pushItems(b, items);
System.out.println("DEBUG: ELSE I'm HERE");
block.getWorld().playEffect(block.getLocation(), Effect.STEP_SOUND, block.getType());
block.setType(Material.SKULL);
block.setData((byte) 1);