diff --git a/src/main/java/untamedwilds/block/blockentity/CritterBurrowBlockEntity.java b/src/main/java/untamedwilds/block/blockentity/CritterBurrowBlockEntity.java index 1bd1b694..904eb940 100644 --- a/src/main/java/untamedwilds/block/blockentity/CritterBurrowBlockEntity.java +++ b/src/main/java/untamedwilds/block/blockentity/CritterBurrowBlockEntity.java @@ -81,7 +81,8 @@ else if (this.getCount() > 0 && this.getEntityType() != null) { } } if (worldIn.getRandom().nextInt(ConfigMobControl.burrowRepopulationChance.get()) == 0 && this.getCount() < 20) { - this.setCount(this.getCount() + 1); + int newCount = this.getCount() + 1; + this.setCount(newCount); } } } @@ -149,4 +150,4 @@ private Inhabitants(CompoundTag nbt) { this.entityData = nbt; } } -} \ No newline at end of file +}