From f1874efef9ee4301b21571ffa9b0b109ab9ff078 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 15 Oct 2010 00:24:25 -0700 Subject: [PATCH] Fixed unchecked cast in CuboidClipboard.loadSchematic(). --- src/CuboidClipboard.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CuboidClipboard.java b/src/CuboidClipboard.java index 44ccaae82..019c10973 100644 --- a/src/CuboidClipboard.java +++ b/src/CuboidClipboard.java @@ -312,7 +312,8 @@ public class CuboidClipboard { byte[] blockData = (byte[])getChildTag(schematic, "Data", ByteArrayTag.class).getValue(); // Need to pull out tile entities - List tileEntities = (List)getChildTag(schematic, "TileEntities", ListTag.class).getValue(); + List tileEntities = (List)((ListTag)getChildTag(schematic, "TileEntities", ListTag.class)) + .getValue(); Map> tileEntitiesMap = new HashMap>();