Added preRemove multipart callback

This commit is contained in:
Chicken Bones committed 2013-09-17 10:13:30 +10:00
1 parent a32004c835
commit e520cc32f5
2 files changed
+2

No files matched your search

+1
View File
@@ -94,6 +94,7 @@ abstract class TMultiPart
def onWorldJoin(){}
def onConverted() = onAdded()
def onMoved() = onWorldJoin()
def preRemove(){}
def doesTick = true
def update(){}
@@ -308,6 +308,7 @@ class TileMultipart extends TileEntity
if(r < 0)
throw new IllegalArgumentException("Tried to remove a non-existant part")
part.preRemove()
partList-=part
if(sendPacket)