[BUG] FrostedIce created by a player does not log the player name.
joeyahines opened this issue ยท 0 comments
Describe the bug
Frosted ice formed by a player does not log the player name, but instead that the entity player
created it.
To Reproduce
Steps to reproduce the behavior:
- Wear boots with Frost Walker on them
- Walk on water.
- Preform a lookup on the ice.
Expected behavior
The username of the player who forms the ice, should be logged to the database.
Server (please complete the following information):
- Prism Version: 2.1.6-127
- Server Type: Paper
- Server Version: 1.16.2
Additional context
I believe this is caused by this line. It gets the entity type name and passes that to ActionFactory.createBlockChange()
. For players, it should cast the entity to an OfflinePlayer
and pass that to ActionFactory.createBlockChange()
. I'm working on implementing this, any guidance on alternative fixes is also appreciated.