I am calling the setCustomCritical method of MachineArrowEntity from other class below, but the customCritical variable is always set to false. It seems to be changing to the result I defined initially. Is there a way to set it to true?
MachineArrowEntity machineArrowEntity = new MachineArrowEntity(world, shooter, weaponStack, projectileStack);
machineArrowEntity.setCustomCritical(true);
public class MachineArrowEntity
extends PersistentProjectileEntity {
private int duration = 200;
private boolean customCritical;
public void setCustomCritical(boolean value) {
this.customCritical = value;
}
}