Bump to 1.56 and invert container ordering
This commit is contained in:
1 parent
45bae3fd74
commit
0290305b23
2 files changed
+7
-7
No files matched your search
@@ -37,20 +37,20 @@ public class BukkitUtils
|
||||
}
|
||||
|
||||
public static int getInventoryHolderType(InventoryHolder holder) {
|
||||
if (holder instanceof BlockState) {
|
||||
return ((BlockState)holder).getTypeId();
|
||||
} else if (holder instanceof DoubleChest) {
|
||||
if (holder instanceof DoubleChest) {
|
||||
return ((DoubleChest)holder).getLocation().getBlock().getTypeId();
|
||||
} else if (holder instanceof BlockState) {
|
||||
return ((BlockState)holder).getTypeId();
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
public static Location getInventoryHolderLocation(InventoryHolder holder) {
|
||||
if (holder instanceof BlockState) {
|
||||
return ((BlockState)holder).getLocation();
|
||||
} else if (holder instanceof DoubleChest) {
|
||||
if (holder instanceof DoubleChest) {
|
||||
return ((DoubleChest)holder).getLocation();
|
||||
} else if (holder instanceof BlockState) {
|
||||
return ((BlockState)holder).getLocation();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: ${project.name}
|
||||
version: '1.55'
|
||||
version: '1.56'
|
||||
author: DiddiZ
|
||||
website: http://www.diddiz.de/minecraft/
|
||||
main: de.diddiz.LogBlock.LogBlock
|
||||
|
||||
Reference in new issue
Block a user