mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +00:00 
			
		
		
		
	Fall back to the default item when rendering non-turtles
Closes #1328. This isn't an actual fix - I have no clue what's going on there - but it should be less crashy.
This commit is contained in:
		| @@ -111,6 +111,9 @@ public class TurtleSmartItemModel implements IBakedModel | ||||
|             @Override | ||||
|             public IBakedModel resolve( @Nonnull IBakedModel originalModel, @Nonnull ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity ) | ||||
|             { | ||||
|                 // Should never happen, but just in case! | ||||
|                 if ( !(stack.getItem() instanceof ItemTurtle) ) return familyModel; | ||||
| 
 | ||||
|                 ItemTurtle turtle = (ItemTurtle) stack.getItem(); | ||||
|                 int colour = turtle.getColour( stack ); | ||||
|                 ITurtleUpgrade leftUpgrade = turtle.getUpgrade( stack, TurtleSide.LEFT ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonathan Coates
					Jonathan Coates