forked from LogBlock/LogBlock
Bump to 1.56 and invert container ordering
This commit is contained in:
@@ -37,20 +37,20 @@ public class BukkitUtils
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int getInventoryHolderType(InventoryHolder holder) {
|
public static int getInventoryHolderType(InventoryHolder holder) {
|
||||||
if (holder instanceof BlockState) {
|
if (holder instanceof DoubleChest) {
|
||||||
return ((BlockState)holder).getTypeId();
|
|
||||||
} else if (holder instanceof DoubleChest) {
|
|
||||||
return ((DoubleChest)holder).getLocation().getBlock().getTypeId();
|
return ((DoubleChest)holder).getLocation().getBlock().getTypeId();
|
||||||
|
} else if (holder instanceof BlockState) {
|
||||||
|
return ((BlockState)holder).getTypeId();
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Location getInventoryHolderLocation(InventoryHolder holder) {
|
public static Location getInventoryHolderLocation(InventoryHolder holder) {
|
||||||
if (holder instanceof BlockState) {
|
if (holder instanceof DoubleChest) {
|
||||||
return ((BlockState)holder).getLocation();
|
|
||||||
} else if (holder instanceof DoubleChest) {
|
|
||||||
return ((DoubleChest)holder).getLocation();
|
return ((DoubleChest)holder).getLocation();
|
||||||
|
} else if (holder instanceof BlockState) {
|
||||||
|
return ((BlockState)holder).getLocation();
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name: ${project.name}
|
name: ${project.name}
|
||||||
version: '1.55'
|
version: '1.56'
|
||||||
author: DiddiZ
|
author: DiddiZ
|
||||||
website: http://www.diddiz.de/minecraft/
|
website: http://www.diddiz.de/minecraft/
|
||||||
main: de.diddiz.LogBlock.LogBlock
|
main: de.diddiz.LogBlock.LogBlock
|
||||||
|
Reference in New Issue
Block a user