Posted May 20, 201510 yr In my mod Flora & Soma I have added the ability to customize villages. eg: What Biomes they can spawn in and what blocks they are made out of. Everything works fine except when I try to use a non-vanilla block. Crash: https://gist.github.com/LogicTechCorp/abf96b4cdc43f0fd3382 ConfigVillage: https://github.com/LogicTechCorp/FloraSoma/blob/master/src/main/java/florasoma/common/ConfigVillage.java BiomeBlockReplacer: https://github.com/LogicTechCorp/FloraSoma/blob/master/src/main/java/florasoma/util/BiomeBlockReplacer.java ClientProxy: https://github.com/LogicTechCorp/FloraSoma/blob/master/src/main/java/florasoma/proxy/ClientProxy.java FloraSoma: https://github.com/LogicTechCorp/FloraSoma/blob/master/src/main/java/florasoma/FloraSoma.java
May 20, 201510 yr Gosh, have you tried printing or testing the values of b and replacement to make sure that they aren't null before you get their unlocalized name? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 20, 201510 yr Author b comes out correctly but replacement is null, how would I resolve replacement being null?
May 20, 201510 yr a) the block doesn't exist (the mod is not loaded) b) you supplied the wrong name Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 20, 201510 yr Author The block name is correct so it must mean it is looking for the block before it is registered but I'm looking for the block in post initialization and the block is registered in pre initialization, which makes no sense to me.
May 20, 201510 yr Are you including the modid the block is registered with? It's kind of important. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.