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:
		| @@ -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 ); | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 coolsa
					coolsa