Tidy some splatter map code

This commit is contained in:
me@foxt.dev 2021-12-12 15:28:41 +00:00
parent 810d2f0a39
commit e9ac33975e
1 changed files with 2 additions and 8 deletions

View File

@ -224,10 +224,7 @@ public abstract class SplatterMapManager {
// when on ceiling we flipped the rotation
RunTask.later(() -> {
addPropertiesToFrames(player, frame);
ItemStack mapItem = MapItemManager.createMapItem(id, null,true);
MapMeta meta = (MapMeta) mapItem.getItemMeta();
mapItem.setItemMeta(meta);
frame.setItem(mapItem);
frame.setItem(MapItemManager.createMapItem(id, null,true));
}, 5L);
if (i == 0) {
@ -288,10 +285,7 @@ public abstract class SplatterMapManager {
RunTask.later(() -> {
addPropertiesToFrames(player, frame);
ItemStack mapItem = MapItemManager.createMapItem(id, null,true);
MapMeta meta = (MapMeta) mapItem.getItemMeta();
mapItem.setItemMeta(meta);
frame.setItem(mapItem);
frame.setItem(MapItemManager.createMapItem(id, null,true));
}, 5L);