Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ public static int getRoundNumber(String string) {
// private static ZombiesMap cacheMap = ZombiesMap.NULL;

public static ZombiesMap getMap() {
BlockPos blockPos = new BlockPos(0, 72, 12);
World world = Minecraft.getMinecraft().theWorld;
if (world == null) {
return ZombiesMap.NULL;
}
BlockPos blockPos = new BlockPos(0, 72, 12);
IBlockState blockState = world.getBlockState(blockPos);
Block block = blockState.getBlock();
String blockName = block.getUnlocalizedName();
Expand Down