Skip to content

Commit

Permalink
I saw bees didn't behave. Bees are animals. When animals are disabled…
Browse files Browse the repository at this point in the history
…, they still popped up. So bad bad bees! (#138)

Fixed that.
  • Loading branch information
svaningelgem authored Sep 4, 2024
1 parent bae257a commit cca1daf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public TerraformWorld getTerraformWorld() {

@Override
public void setBeehiveWithBee(int rawX, int rawY, int rawZ) {
if (!TConfig.areAnimalsEnabled()) return;

if (!lr.isInRegion(rawX, rawY, rawZ)) {
return; // just forget it
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
import org.terraform.coregen.populatordata.IPopulatorDataBeehiveEditor;
import org.terraform.data.SimpleBlock;
import org.terraform.main.TerraformGeneratorPlugin;
import org.terraform.main.config.TConfig;

public class BeeHiveSpawner {

public static void spawnFullBeeNest(@NotNull SimpleBlock block) {
if (!TConfig.areAnimalsEnabled()) return;

try {
if (block.getPopData() instanceof IPopulatorDataBeehiveEditor ipopdata) {
ipopdata.setBeehiveWithBee(block.getX(), block.getY(), block.getZ());
Expand Down

0 comments on commit cca1daf

Please sign in to comment.