From 9e4ae3a494c44196d1c921944a086fc23de8eebf Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Sun, 24 Sep 2017 01:00:55 -0400 Subject: [PATCH] Remove some unnecessary null checks We know turtle can't be null in any of these places, since in preceding code, we called methods on it, so we would have gotten a NullPointerException then and never gotten here if it were null. --- .../render/TileEntityTurtleRenderer.java | 36 +++++-------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/src/main/java/dan200/computercraft/client/render/TileEntityTurtleRenderer.java b/src/main/java/dan200/computercraft/client/render/TileEntityTurtleRenderer.java index 70c5780cf..a6c566f90 100644 --- a/src/main/java/dan200/computercraft/client/render/TileEntityTurtleRenderer.java +++ b/src/main/java/dan200/computercraft/client/render/TileEntityTurtleRenderer.java @@ -116,20 +116,12 @@ public class TileEntityTurtleRenderer extends TileEntitySpecialRenderer