Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ if (secretFile.exists()) {
}

minecraft {
version = "1.10.2-12.18.1.2011"
version = "1.10.2-12.18.2.2125"
runDir = "run"
mappings = "snapshot_20160820"
mappings = "snapshot_20161111"
makeObfSourceJar = false
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/mmd/orespawn/command/ClearChunkCommand.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package mmd.orespawn.command;

import mmd.orespawn.world.OreSpawnWorldGenerator;
import net.minecraft.block.Block;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.ChunkPos;
Expand Down Expand Up @@ -38,7 +38,7 @@ public void execute(MinecraftServer server, ICommandSender sender, String[] args
BlockPos pos = new BlockPos(x, y, z);
Block block = player.worldObj.getBlockState(pos).getBlock();

if (block == Blocks.STONE || block == Blocks.DIRT || block == Blocks.GRASS || block == Blocks.SAND || block == Blocks.SANDSTONE || block == Blocks.BEDROCK) {
if (OreSpawnWorldGenerator.SPAWN_BLOCKS.contains(block)) {
player.worldObj.setBlockToAir(pos);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class OreSpawnWorldGenerator implements IWorldGenerator {
private static final int MAX_CACHE_SIZE = 1024;
private static final Map<Vec3i, Map<BlockPos, IBlockState>> OVERFLOW_CACHE = new HashMap<>(MAX_CACHE_SIZE);
private static final Deque<Vec3i> CACHE_ORDER = new LinkedList<>();
private static final HashSet<Block> SPAWN_BLOCKS = new HashSet<>();
public static final HashSet<Block> SPAWN_BLOCKS = new HashSet<>();
private static final Set<Integer> KNOWN_DIMENSIONS = new HashSet<>();

private static final Predicate<IBlockState> STONE_PREDICATE = input -> {
Expand Down