Trial removing setPos for perf benefits

This commit is contained in:
fullwall 2024-09-01 13:17:12 +08:00
parent 045054c076
commit 34126ccd8f
5 changed files with 0 additions and 5 deletions

View File

@ -1392,7 +1392,6 @@ public class NMSImpl implements NMSBridge {
@Override @Override
public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) { public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) {
getHandle(entity).setPos(location.getX(), location.getY(), location.getZ());
getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(), getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(),
location.getPitch()); location.getPitch());
} }

View File

@ -1402,7 +1402,6 @@ public class NMSImpl implements NMSBridge {
@Override @Override
public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) { public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) {
getHandle(entity).setPos(location.getX(), location.getY(), location.getZ());
getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(), getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(),
location.getPitch()); location.getPitch());
} }

View File

@ -1552,7 +1552,6 @@ public class NMSImpl implements NMSBridge {
@Override @Override
public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) { public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) {
getHandle(entity).setPos(location.getX(), location.getY(), location.getZ());
getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(), getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(),
location.getPitch()); location.getPitch());
} }

View File

@ -1565,7 +1565,6 @@ public class NMSImpl implements NMSBridge {
@Override @Override
public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) { public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) {
getHandle(entity).setPos(location.getX(), location.getY(), location.getZ());
getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(), getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(),
location.getPitch()); location.getPitch());
} }

View File

@ -1529,7 +1529,6 @@ public class NMSImpl implements NMSBridge {
@Override @Override
public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) { public void setLocationDirectly(org.bukkit.entity.Entity entity, Location location) {
getHandle(entity).setPos(location.getX(), location.getY(), location.getZ());
getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(), getHandle(entity).moveTo(location.getX(), location.getY(), location.getZ(), location.getYaw(),
location.getPitch()); location.getPitch());
} }