This commit is contained in:
2025-10-01 21:34:31 +02:00
parent 7e972d3658
commit d3bb922906
3 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ public abstract class TridentEntityMixin
public void tick(CallbackInfo ci)
{
TridentEntity trident = ((TridentEntity)(Object)this);
if (LOYALTY_VOID_PROTECTION && trident.getDataTracker().get(LOYALTY) > 0 && trident.getY() <= trident.getWorld().getBottomY())
if (LOYALTY_VOID_PROTECTION && trident.getDataTracker().get(LOYALTY) > 0 && trident.getY() <= trident.getEntityWorld().getBottomY())
{
dealtDamage = true;
trident.setVelocity(0, 0, 0);