Make payload blocks run onDestroyed() of the block payload it carries when destroyed. (#8253)

* Payloads go boom.

* When a payload unit dies too

* Keep the functionality, but limit it to a rule
This commit is contained in:
MEEPofFaith
2024-03-29 12:17:19 -07:00
committed by GitHub
parent 520c423a59
commit d8c1ea17e1
8 changed files with 28 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ public class Rules{
public boolean unitAmmo = false;
/** EXPERIMENTAL! If true, blocks will update in units and share power. */
public boolean unitPayloadUpdate = false;
/** If true, units' payloads are destroy()ed when the unit is destroyed. */
public boolean unitPayloadsExplode = false;
/** Whether cores add to unit limit */
public boolean unitCapVariable = true;
/** If true, unit spawn points are shown. */