Skip to content

Commit 11279c3

Browse files
Copilotrubensworks
andauthored
Revert unnecessary getDescriptionId and isEmpty changes in ItemBiomeExtract
Agent-Logs-Url: https://github.com/CyclopsMC/EvilCraft/sessions/49fc63ba-d570-4488-8e2e-92ffc2f5c65a Co-authored-by: rubensworks <440384+rubensworks@users.noreply.github.com>
1 parent 1f293db commit 11279c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/cyclops/evilcraft/item/ItemBiomeExtract.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static HolderLookup.RegistryLookup<Biome> getBiomeRegistry(HolderLookup.P
5656

5757
@Override
5858
public String getDescriptionId(ItemStack itemStack) {
59-
return super.getDescriptionId(itemStack) + (itemStack.get(RegistryEntries.COMPONENT_BIOME) == null ? ".empty" : "");
59+
return super.getDescriptionId(itemStack) + (getBiome(itemStack) == null ? ".empty" : "");
6060
}
6161

6262
@Override
@@ -105,7 +105,7 @@ public Stream<Holder.Reference<Biome>> getBiomes(HolderLookup.Provider holders)
105105
}
106106

107107
public boolean isEmpty(ItemStack itemStack) {
108-
return itemStack.get(RegistryEntries.COMPONENT_BIOME) == null;
108+
return getBiome(itemStack) == null;
109109
}
110110

111111
/**

0 commit comments

Comments
 (0)