1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-07-05 03:23:20 +00:00

Fix coloured pocket computers using the wrong texture

This commit is contained in:
Jonathan Coates 2021-06-05 11:36:36 +01:00
parent f38a6a9d43
commit 1866916cb8
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -147,7 +147,7 @@ public static void setupClient( FMLClientSetupEvent event )
( stack, world, player ) -> ItemPocketComputer.getState( stack ).ordinal(),
Registry.ModItems.POCKET_COMPUTER_NORMAL, Registry.ModItems.POCKET_COMPUTER_ADVANCED
);
registerItemProperty( "state",
registerItemProperty( "coloured",
( stack, world, player ) -> IColouredItem.getColourBasic( stack ) != -1 ? 1 : 0,
Registry.ModItems.POCKET_COMPUTER_NORMAL, Registry.ModItems.POCKET_COMPUTER_ADVANCED
);