Fixed core capture crash
This commit is contained in:
@@ -282,8 +282,11 @@ public class CoreBlock extends StorageBlock{
|
|||||||
public void afterDestroyed(){
|
public void afterDestroyed(){
|
||||||
if(state.rules.coreCapture){
|
if(state.rules.coreCapture){
|
||||||
tile.setNet(block, lastDamage, 0);
|
tile.setNet(block, lastDamage, 0);
|
||||||
//core is invincible for several seconds to prevent recapture
|
//building does not exist on client yet
|
||||||
((CoreBuild)tile.build).iframes = captureInvicibility;
|
if(!net.client()){
|
||||||
|
//core is invincible for several seconds to prevent recapture
|
||||||
|
((CoreBuild)tile.build).iframes = captureInvicibility;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user