Skip to content

Commit

Permalink
Updated version number for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Karanum committed Apr 16, 2018
1 parent 572f162 commit eb7a5fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit eb7a5fa

Please sign in to comment.