From 45a0c79bdd4611aab1c78f21880e6f18bd31ac59 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Fri, 12 Jun 2015 23:09:08 -0500 Subject: [PATCH] Fix inventory not being stored in chests of a cell --- src/main/java/com/graywolf336/jail/beans/Cell.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/graywolf336/jail/beans/Cell.java b/src/main/java/com/graywolf336/jail/beans/Cell.java index e915b34..4161e94 100644 --- a/src/main/java/com/graywolf336/jail/beans/Cell.java +++ b/src/main/java/com/graywolf336/jail/beans/Cell.java @@ -201,7 +201,9 @@ public class Cell implements ICell { public Chest getChest() { if(this.chest == null) return null; - if(this.chest.getLocation().getBlock() == null || this.chest.getLocation().getBlock().getType() != Material.CHEST) return null; + if(this.chest.getLocation().getBlock() == null + || (this.chest.getLocation().getBlock().getType() != Material.CHEST + && this.chest.getLocation().getBlock().getType() != Material.TRAPPED_CHEST)) return null; return (Chest) this.chest.getLocation().getBlock().getState(); }