Tiny Redstone

Tiny Redstone

11M Downloads

[1.16] Kicks player from server when TinyBlockItem.getName is called

jeremiahwinsley opened this issue ยท 4 comments

commented

https://gist.github.com/radiomike/744fa87fbb9e97cc38bd564053b25e1a

This method calls ITextComponent.nullToEmpty which is only available client-side:

return ITextComponent.nullToEmpty(thisName + " (" + fromBlockName + ")");

commented

@dannydjdk Seems like the same issue is present on PanelCoverItem as well.

commented

@dannydjdk Seems like the same issue is present on PanelCoverItem as well.

Yes. This should be fixed in the latest release as well.

commented

Thanks for reporting this! It looks like Mahou Sukai is grabbing the item name text component on the server side. It's not something I would have expected, and thus it didn't come up in testing. However, it should be easy to fix on my end.

Note: This is only an issue in 1.16. Component.nullToEmpty is available server-side in 1.17+. Apparently, Mojang also stumbled upon a use case for text components server side.

commented

Fix released in 1.13.2