Skip to content

Commit

Permalink
fix inventory command with offline player link
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 5, 2021
1 parent 62d3ced commit 08de7d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -991,7 +991,7 @@ public static boolean tryMaterial(Material mat, String comparedto) {
if (quickOf.getMaterial() != mat) {
return false;
}
if (quickOf.equals(mat)) {
if (quickOf.getMaterial().equals(mat)) {
return true;
}
}
Expand Down
Expand Up @@ -236,7 +236,7 @@ else if (!scriptEntry.hasObject("flag_action")
scriptEntry.defaultObject("slot", new ElementTag(1));
scriptEntry.defaultObject("destination",
Utilities.entryHasPlayer(scriptEntry) ?
new AbstractMap.SimpleEntry<>(0, Utilities.getEntryPlayer(scriptEntry).getDenizenEntity().getInventory()) : null);
new AbstractMap.SimpleEntry<>(0, Utilities.getEntryPlayer(scriptEntry).getInventory()) : null);
if (!scriptEntry.hasObject("destination")) {
throw new InvalidArgumentsException("Must specify a Destination Inventory!");
}
Expand Down

0 comments on commit 08de7d6

Please sign in to comment.