Fix compat with spigot 1.12.1

This commit is contained in:
Jesse Boyd 2017-08-04 14:17:18 +10:00
parent 8c2e6a875c
commit db524acc3d
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 7 additions and 2 deletions

View File

@ -8,7 +8,8 @@ dependencies {
}
compile 'org.bukkit.craftbukkitv1_10:craftbukkitv1_10:1.10'
compile 'org.bukkit.craftbukkitv1_11:Craftbukkit:1.11'
compile 'org.bukkit.craftbukkitv1_12:Craftbukkit:1.12'
// compile 'org.bukkit.craftbukkitv1_12:Craftbukkit:1.12'
compile 'org.bukkit.craftbukkitv1_12_R1:Craftbukkit:1.12.1'
compile 'net.milkbowl.vault:VaultAPI:1.5'
compile 'com.massivecraft:factions:2.8.0'
compile 'com.drtshock:factions:1.6.9.5'

View File

@ -488,7 +488,11 @@ public class BukkitChunk_1_12 extends CharFaweChunk<Chunk, BukkitQueue_1_12> {
tag.set("x", new NBTTagInt(x));
tag.set("y", new NBTTagInt(y));
tag.set("z", new NBTTagInt(z));
tileEntity.a(tag); // ReadTagIntoTile
if (BukkitQueue_1_12.methodTileEntityLoad != null) {
BukkitQueue_1_12.methodTileEntityLoad.invoke(tileEntity, tag); // ReadTagIntoTile
} else {
tileEntity.load(tag);
}
}
}
// Change task