Removed unnecessary checks for null, deleted mountpoint scale command-does not have any effect
@@ -123,31 +123,17 @@ public void ensureHeldItemIsMountedOnLoad(OnChangedComponent event, EntityRef cl
public void setRemotePlayersHeldItemMountPointTranslations(@CommandParam("x") float x, @CommandParam("y") float y, @CommandParam("z") float z) {
for (EntityRef remotePlayer : entityManager.getEntitiesWith(RemotePersonHeldItemMountPointComponent.class)) {
RemotePersonHeldItemMountPointComponent remoteMountPointComponent = remotePlayer.getComponent(RemotePersonHeldItemMountPointComponent.class);
- if (remoteMountPointComponent != null) {
remoteMountPointComponent.translate.set(x, y, z);
}
}
- }
@Command(shortDescription = "Sets the held item mount point rotation for remote characters")
public void setRemotePlayersHeldItemMountPointRotations(@CommandParam("x") float x, @CommandParam("y") float y, @CommandParam("z") float z) {
for (EntityRef remotePlayer : entityManager.getEntitiesWith(RemotePersonHeldItemMountPointComponent.class)) {
RemotePersonHeldItemMountPointComponent remoteMountPointComponent = remotePlayer.getComponent(RemotePersonHeldItemMountPointComponent.class);
- if (remoteMountPointComponent != null) {
remoteMountPointComponent.rotateDegrees.set(x, y, z);
}
}
- }
-
- @Command(shortDescription = "Sets the held item mount point scale for remote characters")
- public void setRemotePlayersHeldItemMountPointScale(@CommandParam("scale") float scale) {
- for (EntityRef remotePlayer : entityManager.getEntitiesWith(RemotePersonHeldItemMountPointComponent.class)) {
- RemotePersonHeldItemMountPointComponent remoteMountPointComponent = remotePlayer.getComponent(RemotePersonHeldItemMountPointComponent.class);
- if (remoteMountPointComponent != null) {
- remoteMountPointComponent.scale = scale;
- }
- }
- }
@ReceiveEvent
public void onHeldItemActivated(OnActivatedComponent event, EntityRef player, CharacterHeldItemComponent heldItemComponent, CharacterComponent characterComponents) {
