Skip to content

Commit

Permalink
fix: fixed ice dragons not hatching
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBv committed Jan 8, 2024
1 parent b4286d9 commit 03243f3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.github.alexthe666.iceandfire.IafConfig;
import com.github.alexthe666.iceandfire.IceAndFire;
import com.github.alexthe666.iceandfire.block.BlockEggInIce;
import com.github.alexthe666.iceandfire.block.IafBlockRegistry;
import com.github.alexthe666.iceandfire.entity.tile.TileEntityEggInIce;
import com.github.alexthe666.iceandfire.entity.util.IBlacklistedFromStatues;
Expand Down Expand Up @@ -149,8 +148,7 @@ public void updateEggCondition() {
level().setBlockAndUpdate(blockPosition(), IafBlockRegistry.EGG_IN_ICE.get().defaultBlockState());
level().playLocalSound(getX(), getY() + getEyeHeight(), getZ(), SoundEvents.GLASS_BREAK, getSoundSource(), 2.5F, 1.0F, false);

if (state.getBlock() instanceof BlockEggInIce) {
TileEntityEggInIce eggInIce = (TileEntityEggInIce) level().getBlockEntity(blockPosition());
if (level().getBlockEntity(blockPosition()) instanceof TileEntityEggInIce eggInIce) {
eggInIce.type = getEggType();
eggInIce.ownerUUID = getOwnerId();
}
Expand Down

2 comments on commit 03243f3

@mrkayar
Copy link

@mrkayar mrkayar commented on 03243f3 Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how i can fix this bug on my world

@f4r4ree
Copy link

@f4r4ree f4r4ree commented on 03243f3 Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so do i delete the one i added to my world before and add the updated beta mod?

Please sign in to comment.