Skip to content

Commit

Permalink
- Fixed error related to removing non-existing models
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Mar 28, 2024
1 parent 0d8ec63 commit 05b116a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ public class Bone {
@Getter
private final Bone parent;
private final Skeleton skeleton;
private final TransformationMatrix localMatrix = new TransformationMatrix();
//Relative to the parent
private PacketModelEntity packetArmorStandEntity = null;
private PacketModelEntity packetDisplayEntity = null;
private Vector animationTranslation = new Vector();
private Vector animationRotation = new Vector();

private final TransformationMatrix localMatrix = new TransformationMatrix();
private TransformationMatrix globalMatrix = new TransformationMatrix();


Expand Down Expand Up @@ -195,7 +194,8 @@ else if (packetDisplayEntity != null)
}

public void hideFrom(UUID playerUUID) {
packetArmorStandEntity.hideFrom(playerUUID);
if (packetArmorStandEntity != null)
packetArmorStandEntity.hideFrom(playerUUID);
if (packetDisplayEntity != null)
packetDisplayEntity.hideFrom(playerUUID);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: FreeMinecraftModels
version: '1.2.0'
version: '1.2.0-SNAPSHOT-2'
main: com.magmaguy.freeminecraftmodels.FreeMinecraftModels
api-version: 1.18
prefix: FreeMinecraftModels
Expand Down

0 comments on commit 05b116a

Please sign in to comment.