mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-26 06:53:30 +00:00
Fix problem in EnumFlowerColor with "getName", which conflicts during obfuscation.
This commit is contained in:
1 parent
b59f541a10
commit
05648ce05a
23 files changed
+171
-133
No files matched your search
@@ -89,7 +89,7 @@ public class BlockCeramic extends Block implements IColoredBlock, IItemModelRegi
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubBlocks(final Item item, final CreativeTabs tab, final NonNullList<ItemStack> itemList) {
|
||||
for (EnumFlowerColor c : EnumFlowerColor.values()) {
|
||||
itemList.add(new ItemStack(item, 1, c.getID()));
|
||||
itemList.add(new ItemStack(item, 1, c.getFlowerColorAllele().getID()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,9 +108,9 @@ public class BlockCeramic extends Block implements IColoredBlock, IItemModelRegi
|
||||
if (world != null && pos != null) {
|
||||
TileCeramic ceramic = TileUtil.getTile(world, pos, TileCeramic.class);
|
||||
if (ceramic != null) {
|
||||
return ceramic.getColor().getColor(false);
|
||||
return ceramic.getColor().getFlowerColorAllele().getColor(false);
|
||||
}
|
||||
}
|
||||
return EnumFlowerColor.get(0).getColor(false);
|
||||
return EnumFlowerColor.get(0).getFlowerColorAllele().getColor(false);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user