mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-22 05:02:32 +00:00
Fixed a bug with the order of remove events.
This commit is contained in:
1 parent
aebb2e8b85
commit
e6f5c1478a
1 file changed
+4
-3
@@ -242,6 +242,10 @@ class TileMultipart extends TileEntity
|
||||
private[multipart] def remPart_impl(part:TMultiPart):TileMultipart =
|
||||
{
|
||||
val i = remPart_do(part)
|
||||
|
||||
if(!worldObj.isRemote)
|
||||
getWriteStream.writeByte(254).writeByte(i)
|
||||
|
||||
if(!isInvalid())
|
||||
{
|
||||
notifyPartChange(part)
|
||||
@@ -249,9 +253,6 @@ class TileMultipart extends TileEntity
|
||||
markRender()
|
||||
}
|
||||
|
||||
if(!worldObj.isRemote)
|
||||
getWriteStream.writeByte(254).writeByte(i)
|
||||
|
||||
if(!isInvalid())
|
||||
return MultipartGenerator.partRemoved(this, part)
|
||||
|
||||
|
||||
Reference in new issue
Block a user