Usage of different Vec3d instance

Found an already zero'd out constant Vec3d instance.
This commit is contained in:
Daniel E 2019-11-19 14:44:04 -07:00
parent 4e9d6bdae3
commit 186d4ed7f8
1 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,6 @@ import java.util.concurrent.ConcurrentLinkedQueue;
* @author Daniel E * @author Daniel E
*/ */
public final class ObsidianReplaceModule extends Module { public final class ObsidianReplaceModule extends Module {
private static final Vec3d EMPTY_FACE_OFFSET_VECTOR = new Vec3d(0.0d, 0.0d, 0.0d);
private static final int[][] BLOCK_DIRECTION_OFFSET = { private static final int[][] BLOCK_DIRECTION_OFFSET = {
{0, 1, 0}, {0, 1, 0},
{0, -1, 0}, {0, -1, 0},
@ -223,8 +222,8 @@ public final class ObsidianReplaceModule extends Module {
if (minecraft.playerController.processRightClickBlock(minecraft.player, if (minecraft.playerController.processRightClickBlock(minecraft.player,
minecraft.world, placementRequest.getBlockPosition(), minecraft.world, placementRequest.getBlockPosition(),
placementRequest.getPlaceDirection().getOpposite(), placementRequest.getPlaceDirection().getOpposite(), Vec3d.ZERO,
EMPTY_FACE_OFFSET_VECTOR, EnumHand.MAIN_HAND) != EnumActionResult.FAIL) EnumHand.MAIN_HAND) != EnumActionResult.FAIL)
minecraft.player.swingArm(EnumHand.MAIN_HAND); minecraft.player.swingArm(EnumHand.MAIN_HAND);
if (blockActivated) if (blockActivated)