2014-08-18 17:43:17 +02:00
|
|
|
From c001de40e026f60551f7bac0e179029a99457df3 Mon Sep 17 00:00:00 2001
|
2014-08-07 21:33:06 +02:00
|
|
|
From: Thinkofdeath <thinkofdeath@spigotmc.org>
|
|
|
|
Date: Thu, 7 Aug 2014 15:48:33 +0100
|
|
|
|
Subject: [PATCH] Fix LEFT_CLICK_AIR detection when not in creative
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2014-08-18 17:43:17 +02:00
|
|
|
index 2b764b5..188393c 100644
|
2014-08-07 21:33:06 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
@@ -1044,7 +1044,7 @@ public class PlayerConnection implements PacketPlayInListener {
|
|
|
|
float f6 = MathHelper.sin(-f1 * 0.017453292F);
|
|
|
|
float f7 = f4 * f5;
|
|
|
|
float f8 = f3 * f5;
|
|
|
|
- double d3 = 5.0D;
|
|
|
|
+ double d3 = player.playerInteractManager.getGameMode() == EnumGamemode.CREATIVE ? 5.0D : 4.5D; // Spigot
|
|
|
|
Vec3D vec3d1 = vec3d.add((double) f7 * d3, (double) f6 * d3, (double) f8 * d3);
|
|
|
|
MovingObjectPosition movingobjectposition = this.player.world.rayTrace(vec3d, vec3d1, false);
|
|
|
|
|
|
|
|
--
|
|
|
|
1.9.1
|
2014-08-09 00:15:42 +02:00
|
|
|
|