mirror of
https://github.com/zDevelopers/ImageOnMap.git
synced 2024-11-13 05:44:04 +01:00
* BUG: Fixed splatter maps removing when in survival mode.
This commit is contained in:
parent
7de48ef7ce
commit
97e62c1a14
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user