1
0
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:
sfan5
2024-08-12 15:32:18 +02:00
committed by GitHub
parent a0e33ba9ea
commit 85e717fcd1
17 changed files with 245 additions and 172 deletions

View File

@@ -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();