amadornes / MCMultiPart

A universal multipart API for Modern Minecraft
Other
67 stars 22 forks source link

Fix #100 #104

Closed 2xsaiko closed 6 years ago

2xsaiko commented 6 years ago

This fixes issue #100.

Line 266 causes the TE to invalidate (probably because it removes the Multipart TE, invalidates it and all the parts inside it), and since World#setTileEntity doesn't set invalid TEs, it doesn't get set and thus, all data is lost. D:

Fixed by simply validating the TE before setting it.