mirror of
https://github.com/SydMontague/ImageMaps.git
synced 2024-11-22 18:35:20 +01:00
Update for CB 1.8 item frame fix.
This commit is contained in:
parent
6b32d60a73
commit
802e0e61aa
@ -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)
|
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.getLocation(), ItemFrame.class);
|
||||||
ItemFrame i = bb.getWorld().spawn(bb.getRelative(face.getOppositeFace()).getLocation(), ItemFrame.class);
|
i.setFacingDirection(face, false);
|
||||||
i.teleport(bb.getLocation());
|
|
||||||
i.setFacingDirection(face, true);
|
|
||||||
|
|
||||||
ItemStack item = getMapItem(cache.getImage(), x, y, image);
|
ItemStack item = getMapItem(cache.getImage(), x, y, image);
|
||||||
i.setItem(item);
|
i.setItem(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user