mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 13:09:59 +00:00
Removed unneeded rebuild, was toying with where to put it.
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user