Created
October 13, 2011 13:24
-
-
Save Flow86/1284205 to your computer and use it in GitHub Desktop.
performance increase patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/buildcraft/common/net/minecraft/src/buildcraft/transport/BlockGenericPipe.java b/buildcraft/common/net/minecraft/src/buildcraft/transport/BlockGenericPipe.java | |
index 966b2bb..1101ecc 100755 | |
--- a/buildcraft/common/net/minecraft/src/buildcraft/transport/BlockGenericPipe.java | |
+++ b/buildcraft/common/net/minecraft/src/buildcraft/transport/BlockGenericPipe.java | |
@@ -367,17 +367,10 @@ public class BlockGenericPipe extends BlockContainer implements | |
public static Pipe getPipe (IBlockAccess blockAccess, int i, int j, int k) { | |
TileEntity tile = blockAccess.getBlockTileEntity(i, j, k); | |
- Pipe pipe = null; | |
+ if (tile instanceof TileGenericPipe) | |
+ return ((TileGenericPipe) tile).pipe; | |
- if (tile instanceof TileGenericPipe) { | |
- pipe = ((TileGenericPipe) tile).pipe; | |
- } | |
- | |
- if (pipe == null) { | |
- pipe = pipeBuffer.get(new BlockIndex(i, j, k)); | |
- } | |
- | |
- return pipe; | |
+ return null; | |
} | |
public static boolean isValid (Pipe pipe) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment