DragonTravel icon indicating copy to clipboard operation
DragonTravel copied to clipboard

Could not pass Entity explode event

Open DrkMatr1984 opened this issue 8 years ago • 4 comments

http://pastebin.com/bzvg78zd on TnT explode

06.02 03:34:14 [Server] INFO Caused by: java.lang.NoClassDefFoundError: eu/phiwa/dragontravel/nms/v1_8_R3/RyeDragon

Seems we need to implement some sort of reflection here to prevent this error in the future. I've implemented a temporary workaround for this issue by first checking if the entity exploding is an instanceof EnderDragon.

DrkMatr1984 avatar Feb 06 '17 02:02 DrkMatr1984

Thanks for the fix, the problem never occured for me since I never used TNT while testing DT... ;)

Phiwa avatar Feb 06 '17 17:02 Phiwa

I figured. If you're not exploding much, the entity explode event would never get called. :) I believe in order to have this work with versions other than 1.8 R3 we'll have to implement reflection instead of importing RyeDragon from eu.phiwa.dragontravel.nms.v1_8_R3.RyeDragon outright.

DrkMatr1984 avatar Feb 06 '17 20:02 DrkMatr1984

Yes, I saw it already. I guess, that will be included in a third "nms-specific" class... Maybe it is a good idea to reopen this issue to keep track of the process.

Phiwa avatar Feb 06 '17 20:02 Phiwa

Yeah, keep it open for now. One of us will get to it soon :)

DrkMatr1984 avatar Feb 06 '17 22:02 DrkMatr1984