This PR prevents new loggers from being created for each instance of AccessoryAttributeBuilder, by making the logger static.
The Issue
AccessoryAttributeBuilder is created multiple times each time AccessoriesEventHandler.onLivingEntityTick() is called. This means that the logger was re-created multiple times for each player for each tick.
Testing
This fix has been tested on my server and seems to have fixed some of the server-lag issues we were experiencing.
This PR
This PR prevents new loggers from being created for each instance of
AccessoryAttributeBuilder
, by making the logger static.The Issue
AccessoryAttributeBuilder
is created multiple times each timeAccessoriesEventHandler.onLivingEntityTick()
is called. This means that the logger was re-created multiple times for each player for each tick.Testing
This fix has been tested on my server and seems to have fixed some of the server-lag issues we were experiencing.