Skip to content

Commit

Permalink
Merge pull request #4 from MariuszT/master
Browse files Browse the repository at this point in the history
get_virtualchest will return null if no virtual chest exists. Thanks MariusT!
  • Loading branch information
EntityReborn committed Mar 17, 2013
2 parents f06b22c + 7102b0c commit 704585a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Construct exec(Target t, Environment environment, Construct... args) thro
}

if (VirtualChests.get(id) == null) {
VirtualChests.set(id, VirtualChests.create(id));
return new CNull(t);
}

MCInventory inv = VirtualChests.get(id);
Expand Down

0 comments on commit 704585a

Please sign in to comment.