We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe5e55d commit 300fe56Copy full SHA for 300fe56
src/main/java/lol/hyper/toolstats/events/ChunkPopulate.java
@@ -56,15 +56,15 @@ public void onPopulate(ChunkPopulateEvent event) {
56
for (Entity entity : chunk.getEntities()) {
57
// if there is a new item frame
58
if (!(entity instanceof ItemFrame)) {
59
- return;
+ continue;
60
}
61
ItemFrame itemFrame = (ItemFrame) entity;
62
// if the item frame has an elytra
63
if (itemFrame.getItem().getType() == Material.ELYTRA) {
64
ItemStack elytraCopy = itemFrame.getItem();
65
ItemMeta meta = elytraCopy.getItemMeta();
66
if (meta == null) {
67
68
69
// add the new tag so we know it's new
70
PersistentDataContainer container = meta.getPersistentDataContainer();
0 commit comments