Skip to content

Commit

Permalink
Default values for blaze and illusioner
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Dec 1, 2023
1 parent e6ee43c commit 92d1823
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public abstract class BlazeEntityMixin extends BlazeLivingEntityMixin implements
{
private static final String WILDFIRE_UUID_NBT_NAME = "WildfireUuid";

private Optional<UUID> friendsandfoes_wildfireUuid;
private Optional<UUID> friendsandfoes_wildfireUuid = Optional.empty();

protected BlazeEntityMixin(EntityType<? extends HostileEntity> entityType, World world) {
super(entityType, world);
Expand Down Expand Up @@ -57,7 +57,7 @@ public void friendsandfoes_onDeath(DamageSource damageSource, CallbackInfo ci) {

@Nullable
public UUID friendsandfoes_getWildfireUuid() {
return (UUID) ((Optional) this.friendsandfoes_wildfireUuid).orElse(null);
return this.friendsandfoes_wildfireUuid.orElse(null);
}

public void friendsandfoes_setWildfireUuid(@Nullable UUID uuid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public abstract class IllusionerEntityMixin extends IllusionerSpellcastingIllage
private static final String TICKS_UNTIL_DESPAWN_NBT_NAME = "TicksUntilDespawn";
private static final String TICKS_UNTIL_CAN_CREATE_ILLUSIONS_NBT_NAME = "TicksUntilCanCreateIllusions";

private IllusionerEntity friendsandfoes_illusioner;
private boolean friendsandfoes_isIllusion;
private boolean friendsandfoes_wasAttacked;
private int friendsandfoes_ticksUntilDespawn;
private int friendsandfoes_ticksUntilCanCreateIllusion;
private IllusionerEntity friendsandfoes_illusioner = null;
private boolean friendsandfoes_isIllusion = false;
private boolean friendsandfoes_wasAttacked = false;
private int friendsandfoes_ticksUntilDespawn = 0;
private int friendsandfoes_ticksUntilCanCreateIllusion = 0;

protected IllusionerEntityMixin(
EntityType<? extends SpellcastingIllagerEntity> entityType,
Expand Down

0 comments on commit 92d1823

Please sign in to comment.