From 298d39841f9c51f10ebf33529d344f8ae07613c9 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Thu, 16 Aug 2012 10:24:50 +0200 Subject: [PATCH] v1.3.0b: - Bukkit EnderChest InventoryHolder Workaround --- plugin.yml | 2 +- pom.xml | 4 ++-- .../minecraft/limitedcreative/listeners/LimitListener.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin.yml b/plugin.yml index 93c1246..33384f8 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,6 +1,6 @@ name: LimitedCreative main: de.jaschastarke.minecraft.limitedcreative.Core -version: 1.3.0a +version: 1.3.0b softdepend: [WorldGuard, WorldEdit, MultiInv] dev-url: http://dev.bukkit.org/server-mods/limited-creative/ commands: diff --git a/pom.xml b/pom.xml index 45334be..c43949e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ de.jaschastarke LimitedCreative LimitedCreative - 1.3.0a + 1.3.0b https://github.com/possi/LimitedCreative scm:git:git://github.com/possi/LimitedCreative.git @@ -68,7 +68,7 @@ org.bukkit bukkit - 1.3.1-R0.1-SNAPSHOT + 1.3.1-R1.0 com.sk89q diff --git a/src/de/jaschastarke/minecraft/limitedcreative/listeners/LimitListener.java b/src/de/jaschastarke/minecraft/limitedcreative/listeners/LimitListener.java index 14139d1..d158731 100644 --- a/src/de/jaschastarke/minecraft/limitedcreative/listeners/LimitListener.java +++ b/src/de/jaschastarke/minecraft/limitedcreative/listeners/LimitListener.java @@ -90,7 +90,7 @@ public class LimitListener implements Listener { Block block = event.getClickedBlock(); - if (block.getState() instanceof InventoryHolder) { + if (block.getState() instanceof InventoryHolder || block.getType() == Material.ENDER_CHEST) { // Workaround, Bukkit not recognize a Enderchest player.onChestAccess(event); } else if (block.getState() instanceof Sign) { player.onSignAccess(event);