mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-24 05:44:24 +00:00
Make the cocoonprovider to a allele
This commit is contained in:
1 parent
31bd519eaf
commit
0349890ddd
17 files changed
+177
-111
No files matched your search
@@ -42,14 +42,14 @@ public class ButterflySpawner implements ILeafTickHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (world.isAirBlock(pos.add(-1, 0, 0))) {
|
||||
attemptButterflySpawn(world, spawn, pos.add(-1, 0, 0));
|
||||
} else if (world.isAirBlock(pos.add(1, 0, 0))) {
|
||||
attemptButterflySpawn(world, spawn, pos.add(1, 0, 0));
|
||||
} else if (world.isAirBlock(pos.add(0, 0, -1))) {
|
||||
attemptButterflySpawn(world, spawn, pos.add(0, 0, -1));
|
||||
} else if (world.isAirBlock(pos.add(0, 0, 1))) {
|
||||
attemptButterflySpawn(world, spawn, pos.add(0, 0, 1));
|
||||
if (world.isAirBlock(pos.north())) {
|
||||
attemptButterflySpawn(world, spawn, pos.north());
|
||||
} else if (world.isAirBlock(pos.south())) {
|
||||
attemptButterflySpawn(world, spawn, pos.south());
|
||||
} else if (world.isAirBlock(pos.west())) {
|
||||
attemptButterflySpawn(world, spawn, pos.west());
|
||||
} else if (world.isAirBlock(pos.east())) {
|
||||
attemptButterflySpawn(world, spawn, pos.east());
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user