mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-07 13:15:02 +00:00
@@ -56,7 +56,7 @@ public class ChunkPopulate implements Listener {
|
|||||||
for (Entity entity : chunk.getEntities()) {
|
for (Entity entity : chunk.getEntities()) {
|
||||||
// if there is a new item frame
|
// if there is a new item frame
|
||||||
if (!(entity instanceof ItemFrame)) {
|
if (!(entity instanceof ItemFrame)) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
ItemFrame itemFrame = (ItemFrame) entity;
|
ItemFrame itemFrame = (ItemFrame) entity;
|
||||||
// if the item frame has an elytra
|
// if the item frame has an elytra
|
||||||
@@ -64,7 +64,7 @@ public class ChunkPopulate implements Listener {
|
|||||||
ItemStack elytraCopy = itemFrame.getItem();
|
ItemStack elytraCopy = itemFrame.getItem();
|
||||||
ItemMeta meta = elytraCopy.getItemMeta();
|
ItemMeta meta = elytraCopy.getItemMeta();
|
||||||
if (meta == null) {
|
if (meta == null) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
// add the new tag so we know it's new
|
// add the new tag so we know it's new
|
||||||
PersistentDataContainer container = meta.getPersistentDataContainer();
|
PersistentDataContainer container = meta.getPersistentDataContainer();
|
||||||
|
|||||||
Reference in New Issue
Block a user