From 5182c1cb77fe3d7c26a7ddbbc9b9e0de5115d9d2 Mon Sep 17 00:00:00 2001 From: Richard Hendricks Date: Tue, 28 Aug 2018 01:07:22 -0500 Subject: Change from fixed colors for fixed fluids, to assigned colours using a HashMap. New fluids will need to be added to the map. Tweaked display so instead of trying to change the color displayed in the chunk, it now fills in the chunk indicating how much fluid is located there. Fixed offset for the crosshairs vs the player's actual location. --- .../detrav/items/behaviours/BehaviourDetravToolElectricProPick.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/com/detrav/items') diff --git a/src/main/java/com/detrav/items/behaviours/BehaviourDetravToolElectricProPick.java b/src/main/java/com/detrav/items/behaviours/BehaviourDetravToolElectricProPick.java index 511db39698..57f5318571 100644 --- a/src/main/java/com/detrav/items/behaviours/BehaviourDetravToolElectricProPick.java +++ b/src/main/java/com/detrav/items/behaviours/BehaviourDetravToolElectricProPick.java @@ -141,6 +141,9 @@ public class BehaviourDetravToolElectricProPick extends BehaviourDetravToolProPi } break; case 2: + if(( x == 0 ) || ( z == 0 )){ //Skip doing the locations with the grid on them. + break; + } FluidStack fStack = GT_UndergroundOil.undergroundOil(aWorld.getChunkFromBlockCoords(c.xPosition * 16 + x, c.zPosition * 16 + z), -1); if (fStack.amount > 0) { packet.addBlock(c.xPosition * 16 + x, 2, c.zPosition * 16 + z, (short) fStack.amount); -- cgit