Skip to content

Commit

Permalink
Update variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Sep 1, 2024
1 parent 9a493cc commit ec342b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions common/src/main/java/com/mrbysco/armorposer/data/SyncData.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public void handleData(ArmorStand armorStand, Player player) {
armorStand.setUUID(entityUUID);

ListTag tagList = tag.getList("Move", Tag.TAG_DOUBLE);
double x = tagList.getDouble(0);
double y = tagList.getDouble(1);
double z = tagList.getDouble(2);
if (x != 0 || y != 0 || z != 0)
armorStand.setPosRaw(armorStand.getX() + x,
armorStand.getY() + y,
armorStand.getZ() + z);
double xOffset = tagList.getDouble(0);
double yOffset = tagList.getDouble(1);
double zOffset = tagList.getDouble(2);
if (xOffset != 0 || yOffset != 0 || zOffset != 0)
armorStand.setPosRaw(armorStand.getX() + xOffset,
armorStand.getY() + yOffset,
armorStand.getZ() + zOffset);

if (Reference.canResize(player)) {
double scale = tag.getDouble("Scale");
Expand Down

0 comments on commit ec342b9

Please sign in to comment.