From eb7a5fa2f03d7afafa55da9ab0b501893fedfa6c Mon Sep 17 00:00:00 2001 From: Karanum Date: Mon, 16 Apr 2018 10:01:08 +0200 Subject: [PATCH] Updated version number for release --- build.gradle | 2 +- .../com/karanumcoding/adamantineshield/AdamantineShield.java | 2 +- .../adamantineshield/listeners/InventoryChangeListener.java | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index c033c9a..e4cf392 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { } group = 'com.karanum' -version = '0.4.0' +version = '0.4.1' description = 'Action logging and rollback plugin for Sponge' sourceCompatibility = targetCompatibility = "1.8" diff --git a/src/main/java/com/karanumcoding/adamantineshield/AdamantineShield.java b/src/main/java/com/karanumcoding/adamantineshield/AdamantineShield.java index d499de9..925b890 100644 --- a/src/main/java/com/karanumcoding/adamantineshield/AdamantineShield.java +++ b/src/main/java/com/karanumcoding/adamantineshield/AdamantineShield.java @@ -36,7 +36,7 @@ import com.karanumcoding.adamantineshield.util.DataUtils; import com.karanumcoding.adamantineshield.util.FilterParser; -@Plugin(id = "adamantineshield", name = "AdamantineShield", version = "0.4.0", authors = { "Karanum", "Snootiful" }, +@Plugin(id = "adamantineshield", name = "AdamantineShield", version = "0.4.1", authors = { "Karanum", "Snootiful" }, description = "Action logging and rollback plugin for Sponge" ) public class AdamantineShield { diff --git a/src/main/java/com/karanumcoding/adamantineshield/listeners/InventoryChangeListener.java b/src/main/java/com/karanumcoding/adamantineshield/listeners/InventoryChangeListener.java index f3e4f73..11c7952 100644 --- a/src/main/java/com/karanumcoding/adamantineshield/listeners/InventoryChangeListener.java +++ b/src/main/java/com/karanumcoding/adamantineshield/listeners/InventoryChangeListener.java @@ -36,10 +36,8 @@ public InventoryChangeListener(Database db, boolean logContainers) { @Listener public void onTransferPost(ChangeInventoryEvent.Transfer.Post e) { if (e.getTransactions().isEmpty()) return; - if (!(e.getSourceInventory() instanceof CarriedInventory) || !(e.getTargetInventory() instanceof CarriedInventory)) { - System.out.println("Either one of the inventories wasn't a Carrier, you nasty Bidoof"); + if (!(e.getSourceInventory() instanceof CarriedInventory) || !(e.getTargetInventory() instanceof CarriedInventory)) return; - } String cause = null; if (e.getCause().containsType(Hopper.class)) {