mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 04:09:45 +00:00
Added preRemove multipart callback
This commit is contained in:
1 parent
a32004c835
commit
e520cc32f5
2 files changed
+2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user