- Bukkit EnderChest InventoryHolder Workaround
This commit is contained in:
Jascha Starke 2012-08-16 10:24:50 +02:00
parent 8166b4d923
commit 298d39841f
3 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -3,7 +3,7 @@
<groupId>de.jaschastarke</groupId>
<artifactId>LimitedCreative</artifactId>
<name>LimitedCreative</name>
<version>1.3.0a</version>
<version>1.3.0b</version>
<url>https://github.com/possi/LimitedCreative</url>
<scm>
<connection>scm:git:git://github.com/possi/LimitedCreative.git</connection>
@ -68,7 +68,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.3.1-R0.1-SNAPSHOT</version>
<version>1.3.1-R1.0</version>
</dependency>
<dependency>
<groupId>com.sk89q</groupId>

View file

@ -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);