1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-31 05:33:00 +00:00

Now only need to mess with rendering...

This commit is contained in:
coolsa
2021-09-30 02:43:57 -06:00
parent 9e57150384
commit 8d3b94734d
30 changed files with 297 additions and 252 deletions

View File

@@ -20,7 +20,7 @@ public interface IColouredItem
static int getColourBasic( ItemStack stack )
{
NbtCompound tag = stack.getTag();
NbtCompound tag = stack.getNbt();
return tag != null && tag.contains( NBT_COLOUR ) ? tag.getInt( NBT_COLOUR ) : -1;
}
@@ -35,7 +35,7 @@ public interface IColouredItem
{
if( colour == -1 )
{
NbtCompound tag = stack.getTag();
NbtCompound tag = stack.getNbt();
if( tag != null )
{
tag.remove( NBT_COLOUR );
@@ -43,7 +43,7 @@ public interface IColouredItem
}
else
{
stack.getOrCreateTag()
stack.getOrCreateNbt()
.putInt( NBT_COLOUR, colour );
}
}