}
@Subscribe
public void onPlayerHitDoor(PlayerInteractEvent e) {
try {
if (e.getAction() != PlayerInteractEvent.Action.LEFT_CLICK_BLOCK) return;
<BUG>Block block = e.getClicked().getWorld().getBlockAt(e.getClicked());
</BUG>
if (!Block.isDoor(block)) return; // Must be a door
if (cellsModule.getCellCreator().getCell(e.getPlayer()) == null) return; // Player isn't creating a cell
e.setCanceled(true);

}
public void init() {
Prison.getInstance().getEventBus().register(this);
}
@Subscribe
public void onPlayerHitDoor(PlayerInteractEvent e) {
try {
if (e.getAction() != PlayerInteractEvent.Action.LEFT_CLICK_BLOCK) return;
Block block = e.getClicked().getWorld().getBlockAt(adjustToTopHalf(e.getClicked()));
if (!Block.isDoor(block)) return; // Must be a door
if (cellsModule.getCellCreator().getCell(e.getPlayer()) == null) return; // Player isn't creating a cell
e.setCanceled(true);
