use continue here, not return

closes #33
This commit is contained in:
hyperdefined
2023-05-22 20:21:16 -04:00
parent fe5e55d746
commit 300fe56c5a

View File

@@ -56,7 +56,7 @@ public class ChunkPopulate implements Listener {
for (Entity entity : chunk.getEntities()) {
// if there is a new item frame
if (!(entity instanceof ItemFrame)) {
return;
continue;
}
ItemFrame itemFrame = (ItemFrame) entity;
// if the item frame has an elytra
@@ -64,7 +64,7 @@ public class ChunkPopulate implements Listener {
ItemStack elytraCopy = itemFrame.getItem();
ItemMeta meta = elytraCopy.getItemMeta();
if (meta == null) {
return;
continue;
}
// add the new tag so we know it's new
PersistentDataContainer container = meta.getPersistentDataContainer();