diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAnimalSpawner.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAnimalSpawner.java index a53b8122..21f4142f 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAnimalSpawner.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAnimalSpawner.java @@ -57,7 +57,7 @@ public class TileEntityAnimalSpawner extends TileEntityImpl implements ITickable this.time += 10; if (this.time >= this.currentRecipe.time) { - Entity entity = this.currentRecipe.makeEntity(this.world, this.spawnX, this.pos.getY() + 1, this.spawnZ); + Entity entity = this.currentRecipe.makeEntity(this.world, new BlockPos(this.spawnX, this.pos.getY() + 1, this.spawnZ)); this.world.addEntity(entity); this.currentRecipe = null; @@ -121,7 +121,8 @@ public class TileEntityAnimalSpawner extends TileEntityImpl implements ITickable this.world.rand.nextFloat() + 0.5F); if (this.entityClient == null) { - this.entityClient = this.currentRecipe.makeEntity(this.world, this.spawnX, this.pos.getY() + 1, this.spawnZ); + this.entityClient = this.currentRecipe.makeEntity(this.world, BlockPos.ZERO); + this.entityClient.setPosition(this.spawnX, this.pos.getY() + 1, this.spawnZ); } AxisAlignedBB bounds = this.entityClient.getBoundingBox(); for (int i = this.world.rand.nextInt(5) + 5; i >= 0; i--) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java index 6063b6c0..124d8ba3 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java @@ -53,7 +53,7 @@ public class TileEntitySnowCreator extends TileEntityImpl implements ITickableTi Fluid fluid = this.world.getFluidState(down).getFluid(); if (fluid == Fluids.WATER) { this.world.setBlockState(down, Blocks.ICE.getDefaultState()); - } else if (Blocks.SNOW.getDefaultState().isValidPosition(this.world, pos) && this.world.getBlockState(pos).getBlock() != Blocks.SNOW) { + } else if (Blocks.SNOW.getDefaultState().isValidPosition(this.world, pos) && this.world.getBlockState(pos).getBlock() != Blocks.SNOW && this.world.getBlockState(pos).getMaterial().isReplaceable()) { this.world.setBlockState(pos, Blocks.SNOW.getDefaultState()); if (this.snowmanCount < range / 2 && this.world.rand.nextFloat() >= 0.995F) { diff --git a/src/main/resources/data/naturesaura/patchouli_books/book/en_us/entries/using/snow_creator.json b/src/main/resources/data/naturesaura/patchouli_books/book/en_us/entries/using/snow_creator.json index 14135c78..cc10b11e 100644 --- a/src/main/resources/data/naturesaura/patchouli_books/book/en_us/entries/using/snow_creator.json +++ b/src/main/resources/data/naturesaura/patchouli_books/book/en_us/entries/using/snow_creator.json @@ -3,7 +3,6 @@ "icon": "naturesaura:snow_creator", "category": "using", "advancement": "naturesaura:sky_ingot", - "flag": "naturesaura:chunk_loader", "pages": [ { "type": "text",