Skip to content

Commit 7db2d8a

Browse files
committed
fix #31, clarify inf spray can is disabled by default
1 parent 4d72f28 commit 7db2d8a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
* Update to GTm 7.5.3
44
* Add the Infinite Spray Can, acts like regular GTm spray cans but with selectable colors (including solvent) and has infinite uses
5-
* Thanks Phoenixvine
5+
* Thanks Phoenixvine
6+
* Disabled by default, DOES NOT have a default crafting recipe
7+
* Fix auto charger not dropping its inventory when broken

src/main/java/net/neganote/gtutilities/common/machine/singleblock/AutoChargerMachine.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ public void onLoad() {
119119
}
120120
}
121121

122+
public void onMachineRemoved() {
123+
this.clearInventory(this.chargerInventory);
124+
}
125+
122126
protected void updateAutoOutputSubscription() {
123127
if (isAutoOutputItems() && !chargerInventory.isEmpty()) {
124128
autoOutputSubs = subscribeServerTick(autoOutputSubs, this::autoOutput);

0 commit comments

Comments
 (0)