mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Keep original model bit flags after copying
This commit is contained in:
parent
806538858e
commit
0d7df76c9c
1 changed files with 6 additions and 0 deletions
|
@ -185,6 +185,9 @@ public class MindSwapSpell extends MimicSpell implements ProjectileDelegate.Enti
|
||||||
final UUID aUUid = a.getUuid();
|
final UUID aUUid = a.getUuid();
|
||||||
final UUID bUUid = b.getUuid();
|
final UUID bUUid = b.getUuid();
|
||||||
|
|
||||||
|
final byte aModelBits = a.getDataTracker().get(PlayerAccess.getModelBitFlag());
|
||||||
|
final byte bModelBits = b.getDataTracker().get(PlayerAccess.getModelBitFlag());
|
||||||
|
|
||||||
final ServerPlayerEntity aClone = clonePlayer(a);
|
final ServerPlayerEntity aClone = clonePlayer(a);
|
||||||
final ServerPlayerEntity bClone = clonePlayer(b);
|
final ServerPlayerEntity bClone = clonePlayer(b);
|
||||||
|
|
||||||
|
@ -197,6 +200,9 @@ public class MindSwapSpell extends MimicSpell implements ProjectileDelegate.Enti
|
||||||
a.setUuid(aUUid);
|
a.setUuid(aUUid);
|
||||||
b.setUuid(bUUid);
|
b.setUuid(bUUid);
|
||||||
|
|
||||||
|
a.getDataTracker().set(PlayerAccess.getModelBitFlag(), aModelBits);
|
||||||
|
b.getDataTracker().set(PlayerAccess.getModelBitFlag(), bModelBits);
|
||||||
|
|
||||||
a.interactionManager.changeGameMode(aMode);
|
a.interactionManager.changeGameMode(aMode);
|
||||||
b.interactionManager.changeGameMode(bMode);
|
b.interactionManager.changeGameMode(bMode);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue