mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-26 09:54:49 +00:00
Turn inspections up to 11
OK, so let's get this out of the way, there's some actual changes mixed in here too. I'm really sorry: - Turtles can now not be renamed with unnamed item tags (previously it would clear the name, this seemed a little unideal). - commands.getBlock(s)Data will also include NBT. Now, onto the horror story which is these inspection changes: - Make a lot of methods static - Typo fixes - Make utility classes final + private constructor - Lots of reformatting (ifs -> ternary, invert control flow, etc...) - ??? - Profit! I'm so going to regret this - can pretty much guarantee this is going to break something.
This commit is contained in:
@@ -53,7 +53,7 @@ public final class RenderOverlayCable
|
||||
state = state.getActualState( world, pos );
|
||||
|
||||
event.setCanceled( true );
|
||||
PeripheralType type = ComputerCraft.Blocks.cable.getPeripheralType( state );
|
||||
PeripheralType type = BlockCable.getPeripheralType( state );
|
||||
|
||||
GlStateManager.enableBlend();
|
||||
GlStateManager.tryBlendFuncSeparate( GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, 1, 0 );
|
||||
|
||||
Reference in New Issue
Block a user