Posted March 4, 201411 yr My mod is working fine in worlds created in 1.7.2 but I'm encountering problems with Block objects in worlds imported from 1.6.4. The problems seem to be caused by GameData.injectWorldIDMap remapping my block ids in GameData.blockRegistry but not remapping their ItemBlock counterparts in GameData.itemRegistry [server thread/INFO]: Found block id mismatch balancedexchange:reactivity_block : 167 501 Block.getBlockById(501) == BalancedExchange.reactivityBlock Item.getItemById(501) == null Item.getItemById(167) == new ItemStack(BalancedExchange.reactivityBlock).getItem() Item.getItemFromBlock(BalancedExchange.reactivityBlock) == null Block.getBlockFromItem(new ItemStack(BalancedExchange.reactivityBlock).getItem()) == Blocks.air Changing my block's id to 167 in 1.6.4 fixes the problems but obviously isn't a valid solution. I'm using latest versions of forge (1.7.2-10.12.0.1034 and 1.6.4-9.11.1.965) and in 1.6.4 I register the block in BalancedExchange.preInit using GameRegistry.registerBlock(reactivityBlock, "balancedexchange:reactivity_block") Is this a bug with injectWorldIDMap, or is there something I'm missing?
March 17, 201411 yr It looks like there is a ticket open for this on Github. I ran into this today working on a test server for forge 1033. https://github.com/MinecraftForge/MinecraftForge/issues/996
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.