From 802e0e61aa557b6cc827ae2d76713adbe65e44f0 Mon Sep 17 00:00:00 2001 From: BlackBeltPanda Date: Sat, 27 Dec 2014 08:49:17 -0500 Subject: [PATCH] Update for CB 1.8 item frame fix. --- src/main/java/de/craftlancer/imagemaps/ImageMaps.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/craftlancer/imagemaps/ImageMaps.java b/src/main/java/de/craftlancer/imagemaps/ImageMaps.java index 5ce8663..b2502a2 100644 --- a/src/main/java/de/craftlancer/imagemaps/ImageMaps.java +++ b/src/main/java/de/craftlancer/imagemaps/ImageMaps.java @@ -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);