Removed unneeded rebuild, was toying with where to put it.

This commit is contained in:
Lex Manos committed 2014-10-09 05:22:50 -07:00
1 parent c002b98e5e
commit 70b57c337a
1 file changed
-11
@@ -490,17 +490,6 @@ public class GameData {
Loader.instance().fireRemapEvent(remaps);
// The id map changed, ensure we apply object holders
ObjectHolderRegistry.INSTANCE.applyObjectHolders();
// Rebuild the state map for all blocks. TODO: Clean this up to a better system when Block.BLOCK_STATE_IDS is cleaned up.
GameData.BLOCKSTATE_TO_ID.clear();
for (Block block : getMain().iBlockRegistry.typeSafeIterable())
{
int id = getMain().iBlockRegistry.getId(block);
for (IBlockState state : ((List<IBlockState>)block.getBlockState().getValidStates()))
{
GameData.BLOCKSTATE_TO_ID.put(state, id << 4 | block.getMetaFromState(state));
}
}
return ImmutableList.of();
}