Skip to content

Commit

Permalink
Add trapped chest support to droptransfer targets
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyCurtis committed Feb 18, 2015
1 parent 8c5c4af commit 021f8d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ public void onProtectionInteract(LWCProtectionInteractEvent event) {
if (!canAccess) {
lwc.sendLocale(player, "protection.interact.dropxfer.noaccess");
} else {
if (protection.getBlockId() != Material.CHEST.getId()) {
int blockId = protection.getBlockId();
if (blockId != Material.CHEST.getId() && blockId != Material.TRAPPED_CHEST.getId()) {
lwc.sendLocale(player, "protection.interact.dropxfer.notchest");
player.removeAllActions();
event.setResult(Result.CANCEL);
Expand Down

0 comments on commit 021f8d1

Please sign in to comment.