Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/26/19 in all areas

  1. Try implementing and registering net.minecraftforge.common.brewing.BrewingRecipe instead. It supports input, ingredient and output as item stacks.
    1 point
  2. I'm not sure if you're supposed to compare BlockStates. Have you taken a look at how Flint & Steel spawns its fires?
    1 point
  3. You're missing a data value in the result.
    1 point
  4. You should really cache that Field object (at mod startup time - preinit is fine), especially if that code gets run frequently. Reflection isn't the fastest thing in the world.
    1 point
  5. I solved this problem before. This was my code: Long2ObjectMap<Chunk> map; try { Field chunkMapping = ChunkProviderClient.class.getDeclaredField("chunkMapping"); chunkMapping.setAccessible(true); map = (Long2ObjectMap<Chunk>) chunkMapping.get(world.getChunkProvider()); } catch(Exception e) { return; }
    1 point
  6. Less "bad" and more "completely pointless." The only bad thing about it is that it violates the DRY principle ("don't repeat yourself") making you type the same 3 lines over and over again, as well as obfuscating how/if your models are being registered. Its not that it doesn't work, but that when it fails, its harder to figure out why (as well as serving no purpose: all items need models and none of the information needed to register one is private (but this CAN change in some circumstances--eg custom mesh definitions--and THAT'S what an interface is good for)). (Note that I'm the one that started the crusade against IHasModel and I'm pretty sure you're echoing what someone else said about it, and not what I've said. ) Other than that, pretty accurate post
    1 point
  7. Please stop bumping your thread only an hour after your last bump, everyone wants their issue solved and everyone says they're desperate or it's urgent, you're not going to die if your issue goes unresolved. This isn't exactly what I mean with the GitHub mention in my signature but alright. I don't see a hard crash here, when you say "crash" is it closing and the launcher comes up to say the game crashed or does it just freeze and you use Task Manager to kill it?
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.