Update for CB 1.8 item frame fix.

This commit is contained in:
BlackBeltPanda 2014-12-27 08:49:17 -05:00
parent 6b32d60a73
commit 802e0e61aa

View File

@ -156,10 +156,8 @@ public class ImageMaps extends JavaPlugin implements Listener
private void setItemFrame(Block bb, BufferedImage image, BlockFace face, int x, int y, PlacingCacheEntry cache)
{
bb.setType(Material.AIR);
ItemFrame i = bb.getWorld().spawn(bb.getRelative(face.getOppositeFace()).getLocation(), ItemFrame.class);
i.teleport(bb.getLocation());
i.setFacingDirection(face, true);
ItemFrame i = bb.getWorld().spawn(bb.getLocation(), ItemFrame.class);
i.setFacingDirection(face, false);
ItemStack item = getMapItem(cache.getImage(), x, y, image);
i.setItem(item);