From ed8f18564a57d0c0c585b3ae3ec0a484a28084cb Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sun, 19 Jun 2016 12:58:28 +0200 Subject: [PATCH] Update for Minecraft 1.10 --- worldedit-sponge/build.gradle | 4 ++-- .../java/com/sk89q/worldedit/sponge/nms/TileEntityUtils.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-sponge/build.gradle b/worldedit-sponge/build.gradle index b4b9871ba..95a557594 100644 --- a/worldedit-sponge/build.gradle +++ b/worldedit-sponge/build.gradle @@ -35,8 +35,8 @@ sponge { } minecraft { - version = "1.9.4" - mappings = 'snapshot_20160521' + version = "1.10" + mappings = 'snapshot_20160619' runDir = 'run' } diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/nms/TileEntityUtils.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/nms/TileEntityUtils.java index 84434b0a8..e6b3a2b73 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/nms/TileEntityUtils.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/nms/TileEntityUtils.java @@ -97,7 +97,7 @@ final class TileEntityUtils { static void setTileEntity(World world, Vector position, @Nullable NBTTagCompound tag) { if (tag != null) { updateForSet(tag, position); - TileEntity tileEntity = TileEntity.create(tag); + TileEntity tileEntity = TileEntity.func_190200_a(world, tag); if (tileEntity != null) { world.setTileEntity(new BlockPos(position.getBlockX(), position.getBlockY(), position.getBlockZ()), tileEntity); }