Skip to content

Commit 5f8d1df

Browse files
committed
byte -> HumanoidArm
1 parent aa6fe7b commit 5f8d1df

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/de/erethon/aether/creature/AetherPlayer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import net.minecraft.world.entity.Avatar;
1616
import net.minecraft.world.entity.Entity;
1717
import net.minecraft.world.entity.EntityType;
18+
import net.minecraft.world.entity.HumanoidArm;
1819
import net.minecraft.world.entity.Mob;
1920
import net.minecraft.world.entity.decoration.Mannequin;
2021
import net.minecraft.world.item.component.ResolvableProfile;
@@ -31,7 +32,7 @@ public class AetherPlayer extends AetherBaseMob {
3132

3233
private static EntityDataAccessor<ResolvableProfile> DATA_PLAYER_PROFILE = null;
3334
private static EntityDataAccessor<Optional<net.minecraft.network.chat.Component>> DATA_DESCRIPTION = null;
34-
private static EntityDataAccessor<Byte> DATA_PLAYER_MAIN_HAND = null;
35+
private static EntityDataAccessor<HumanoidArm> DATA_PLAYER_MAIN_HAND = null;
3536

3637
public AetherPlayer(EntityType<? extends Mob> type, Level world) {
3738
super(type, world);
@@ -60,7 +61,7 @@ protected void onFirstSpawn() {
6061
getEntityData().set(DATA_PLAYER_MODE_CUSTOMISATION, ALL_LAYERS);
6162
getEntityData().set(DATA_PLAYER_PROFILE, getResolvableProfile());
6263
getEntityData().set(DATA_DESCRIPTION, Optional.empty());
63-
getEntityData().set(DATA_PLAYER_MAIN_HAND, (byte) 1); // Right hand
64+
getEntityData().set(DATA_PLAYER_MAIN_HAND, HumanoidArm.RIGHT); // Right hand
6465
}
6566

6667
@Override

0 commit comments

Comments
 (0)