Skip to content

Commit

Permalink
test no culling animations
Browse files Browse the repository at this point in the history
  • Loading branch information
iron431 committed Aug 9, 2024
1 parent 6f6caee commit 28eacc4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ protected AbstractSpellCastingMob(EntityType<? extends PathfinderMob> pEntityTyp
playerMagicData.setSyncedData(new SyncedSpellData(this));
this.lookControl = createLookControl();
}

public boolean getHasUsedSingleAttack() {
return hasUsedSingleAttack;
}
Expand Down Expand Up @@ -159,6 +160,14 @@ public void onSyncedDataUpdated(EntityDataAccessor<?> pKey) {
}
}

@Override
public void tick() {
super.tick();
if (level.isClientSide) {
this.noCulling = this.isAnimating();
}
}

@Override
public void addAdditionalSaveData(CompoundTag pCompound) {
super.addAdditionalSaveData(pCompound);
Expand Down

0 comments on commit 28eacc4

Please sign in to comment.