| Blockland Forums > Help |
| Zone events spamming console |
| << < (2/2) |
| otto-san:
--- Quote from: swollow on August 09, 2013, 05:16:33 PM ---I believe the problem is that when the brick is deleted it doesn't delete the zone --- End quote --- Yeah, seems like it. |
| Zeblote:
--- Quote from: swollow on August 09, 2013, 05:16:33 PM ---I believe the problem is that when the brick is deleted it doesn't delete the zone --- End quote --- oh function fxDTSBrick::onRemove(%brick) { Parent::onRemove(%brick); if(%brick.isZoneBrick == 1) { %brick.RemoveZone(); } } Well that isn't going to work with calling the parent the brick is permanently gone so it can't get the iszonebrick variable function fxDTSBrick::onRemove(%brick) { if(%brick.isZoneBrick == 1) { %brick.RemoveZone(); } Parent::onRemove(%brick); } that is better |
| Navigation |
| Message Index |
| Previous page |