mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-09 11:35:21 +01:00
Rework object attachment handling to fix bugs (#14825)
This commit is contained in:
@@ -81,8 +81,14 @@ public:
|
||||
|
||||
protected:
|
||||
void dispatchScriptDeactivate(bool removal);
|
||||
virtual void onMarkedForDeactivation() { dispatchScriptDeactivate(false); }
|
||||
virtual void onMarkedForRemoval() { dispatchScriptDeactivate(true); }
|
||||
virtual void onMarkedForDeactivation() {
|
||||
UnitSAO::onMarkedForDeactivation();
|
||||
dispatchScriptDeactivate(false);
|
||||
}
|
||||
virtual void onMarkedForRemoval() {
|
||||
UnitSAO::onMarkedForRemoval();
|
||||
dispatchScriptDeactivate(true);
|
||||
}
|
||||
|
||||
private:
|
||||
std::string getPropertyPacket();
|
||||
|
||||
Reference in New Issue
Block a user