mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 19:39:37 +00:00
Adding more flower models
This commit is contained in:
1 parent
2a23e60cdb
commit
fb732b9398
92 files changed
+750
-219
No files matched your search
@@ -24,6 +24,13 @@ public class StateMapperFlower extends StateMapperBase {
|
||||
}else if(flowerType.getSections() <= state.getValue(BlockFlower.SECTION)){
|
||||
properties.put(BlockFlower.SECTION, flowerType.getSections()-1);
|
||||
}
|
||||
if(state.getValue(BlockFlower.SEED)){
|
||||
properties.remove(BlockFlower.SECTION);
|
||||
properties.remove(BlockFlower.FLOWER);
|
||||
properties.remove(BlockFlower.FLOWERED);
|
||||
}else{
|
||||
properties.remove(BlockFlower.SEED);
|
||||
}
|
||||
|
||||
return new ModelResourceLocation(Constants.BOTANY_MOD_ID + ":flower", getPropertyString(properties));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user