LotsOfPixelsStudios / Monstera

A library and dev environment designed to streamline the development of Minecraft addons.

Home Page:https://monstera.lotsofpixelsstudios.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Plugin Support] The logger of some Files is set too early and thus is missing the entity name

12rcu opened this issue · comments

Describe the bug

When writing a plugin a refrence to the build files is sometime established bevore the entity name is know and thus the Logger is set in the build files withou the entity name, which makes debugging harder

Version

Monstera: 0.2.3
Minecraft: 1.20.30

To Reproduce

Steps to reproduce the behavior:

  1. Create a reference on the BehEntity class
  2. Set the logger context to a sample Entity name
  3. add a component group that isn't called with a event
  4. build the addon

Expected behavior

The logger should adapt that the name is given only at a later time and print the name of the entity with the log messages.