Sonar: [squid:S2975] Remove this "clone" implementation; use a copy constructor or copy factory instead
This commit is contained in:
@@ -74,7 +74,7 @@ public class PlayHandler extends AbstractStateHandler implements PlayStateHandle
|
||||
return;
|
||||
}
|
||||
|
||||
CS_PlayerMoveEvent event = new CS_PlayerMoveEvent(player, player.getLocation().clone());
|
||||
CS_PlayerMoveEvent event = new CS_PlayerMoveEvent(player, player.getLocation().copy());
|
||||
event.setNewLocation(new EntityLocation(
|
||||
packet.getX(), packet.getY(), packet.getZ(),
|
||||
player.getLocation().getYaw(),
|
||||
|
||||
Reference in New Issue
Block a user