Advanced Lightsabers

Advanced Lightsabers

1M Downloads

Non-exsitant lightsaber being rendered in multiplayer

fr-Pursuit opened this issue ยท 4 comments

commented

Hello,

While playing on a multiplayer server, a lightsaber appears on every distant player even when they don't have one.

This is due to a bug in ClientEventHandler.onRenderPlayerSpecialsPre()
Indeed, the condition data != LightsaberData.EMPTY should be replaced with data.equals(LightsaberData.EMPTY), as the reference comparison you're using only works when data was set locally from the LightsaberData.EMPTY constant.

Regards,
Pursuit

commented

It's src/main/java/com/fiskmods/lightsabers/common/event/ClientEventHandler.java

It has a number of other issues, too.

commented

Nice find!

commented

Hey man where can i find that file so i can edit it out its annoying the fuck out of my friends and me?

commented

Yes it would be very nice. the problem is that you even see this wenn youre invisible! i have no Idea where i could find that file