TrainerGuy22 / Reliquary

The source code of Reliquary! That mod, with the magical swag, and a weapon, and stuff.
Other
42 stars 24 forks source link

ContentHandler performance issues. #208

Closed MercuriusXeno closed 9 years ago

MercuriusXeno commented 9 years ago

lib.enderwizards.sandstone.init.ContentHandler uses stack analysis frequently, e.g. from the entity living event, which is slow.. (direct quote from Player on Forgecraft)

Let's try to circumvent this with another method or use caching, if applicable.

TrainerGuy22 commented 9 years ago

I originally did this to circumvent having to write ContentHandler.method(MOD_ID, arg) every time. We could move ContentHandler to a instance-based class.

Instead of ContentHandler.getBlock(), you'd write Reliquary.CONTENT.getBlock().