* BUG: Fixed splatter maps removing when in survival mode.

This commit is contained in:
Adrien Prokopowicz 2016-07-07 23:28:17 +02:00
parent 7de48ef7ce
commit 97e62c1a14

View File

@ -223,10 +223,12 @@ public class MapItemManager implements Listener
{
if(frame.getItem().getType() != Material.AIR) return;
if(!MapManager.managesMap(player.getItemInHand())) return;
event.setCancelled(true);
if(SplatterMapManager.hasSplatterAttributes(player.getItemInHand()))
{
SplatterMapManager.placeSplatterMap(frame, player);
if(!SplatterMapManager.placeSplatterMap(frame, player))
return;
}
else
{
@ -234,7 +236,6 @@ public class MapItemManager implements Listener
frame.setItem(is);
}
event.setCancelled(true);
ItemUtils.consumeItem(player);
}