The Twilight Forest

The Twilight Forest

143M Downloads

Blocking the naga with a shield crashes dedicated servers

Hubry opened this issue · 1 comments

commented

Forge version: 14.23.4.2739
Twilight Forest version: 3.8.654
Link to crash log: https://gist.github.com/retep998/9384bf88e4f5a2c24f5624eddb5bb817

Steps to reproduce:

  1. Make sure you are on a server.
  2. Try to use a shield to block the naga.

Seems like you are using a client-only method Entity#setVelocity here:

@Override
public boolean attackEntityAsMob(Entity toAttack) {
if (movementAI.movementState == MovementState.CHARGE && toAttack instanceof EntityLivingBase && ((EntityLivingBase) toAttack).isActiveItemStackBlocking()) {
toAttack.setVelocity(motionX * 1.25D, 0.5D, motionZ * 1.25D);

Tama pls.

commented

reee