mirror of
https://github.com/TeamMidnightDust/ThisRocks.git
synced 2025-12-19 04:05:09 +01:00
Fix polymer support in 1.21.4
You can now enjoy This Rocks on vanilla clients again :)
This commit is contained in:
@@ -30,7 +30,7 @@ public class StarfishItemPolymer extends BlockItem implements PolymerItem {
|
||||
var state = itemStack.getComponents().get(DataComponentTypes.BLOCK_STATE);
|
||||
if (state != null && !state.isEmpty()) {
|
||||
StarfishVariation variation = state.getValue(RocksMain.STARFISH_VARIATION);
|
||||
if (variation != null) return ResourcePackExtras.bridgeModel(polymerId(variation + "_starfish"));
|
||||
if (variation != null) return ResourcePackExtras.bridgeModel(polymerId("item/"+variation + "_starfish"));
|
||||
}
|
||||
return itemStack.get(DataComponentTypes.ITEM_MODEL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user