Skip to content

Commit 5c44fab

Browse files
committed
don't allow any movement
do our best to prevent "exploitation" of this mechanic
1 parent d768ac3 commit 5c44fab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/to/us/tf/DeathSpectating/tasks/SpectateTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public void run()
141141
}
142142
else if (preventMovement)
143143
{
144-
if (deathLocation.distanceSquared(player.getLocation()) > 1)
144+
if (deathLocation.distanceSquared(player.getLocation()) > 0)
145145
teleportPlayer(deathLocation.setDirection(player.getLocation().getDirection()));
146146
player.setFlySpeed(0f);
147147
player.setSpectatorTarget(null);

0 commit comments

Comments
 (0)