Skip to content

Commit 0c24e0b

Browse files
committed
Actually add 1.14 and 1.16.2 support
1 parent e518e26 commit 0c24e0b

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/net/seanomik/energeticstorage/utils

1 file changed

+2
-2
lines changed

src/main/java/net/seanomik/energeticstorage/utils/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ public static boolean listStringContainsString(List<String> list, String string)
131131
public static boolean isBlockASystem(Block block) {
132132
NBTTileEntity blockNBT = new NBTTileEntity(block.getState());
133133
String version = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
134-
if (version.equals("v1_15_R1")) {
134+
if (version.substring(0, 5).equals("v1_15") || version.substring(0, 5).equals("v1_14")) {
135135
return blockNBT.getCompound("Owner").getCompound("Properties").getCompoundList("textures").get(0).getString("Value").equals(Skulls.Computer.getTexture());
136-
} else if (version.equals("v1_16_R1")) {
136+
} else if (version.substring(0, 5).equals("v1_16")) {
137137
return blockNBT.getCompound("SkullOwner").getCompound("Properties").getCompoundList("textures").get(0).getString("Value").equals(Skulls.Computer.getTexture());
138138
}
139139

0 commit comments

Comments
 (0)