Fixed Factory Hopper on-break item retention bug (issue #226).

This commit is contained in:
stfwi 2022-11-26 13:10:53 +01:00
parent 15cfec9c1a
commit da1af53b3c
3 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,7 @@
{
"homepage": "https://www.curseforge.com/minecraft/mc-mods/engineers-decor/",
"1.19.2": {
"1.3.27": "[F] Refactored deprecated forge capability references.\n[F] Fixed Factory Hopper on-break item retention bug (issue #226, ty sunekaer/ftb).",
"1.3.26": "[U] Ported to 1.19.2.\n[F] Fixed Mineral Melting Furnace fluid extraction (issue #223, ty adkinss).",
"1.2.25": "[U] Ported to 1.19.1.",
"1.1.24": "[U] Forge updated to 1.19-41.1.0.\n[B] Known issue: JEI integration missing.",
@ -61,7 +62,7 @@
"1.1.2-b1": "[U] Ported to MC1.16.2."
},
"promos": {
"1.19.2-recommended": "1.3.26",
"1.19.2-latest": "1.3.26"
"1.19.2-recommended": "1.3.27",
"1.19.2-latest": "1.3.27"
}
}

View file

@ -11,7 +11,8 @@ Mod sources for Minecraft version 1.18.x.
## Version history
~ v1.3.27 [F] Refactored deprecated forge capability references.
- v1.3.27 [F] Refactored deprecated forge capability references.
[F] Fixed Factory Hopper on-break item retention bug (issue #226, ty sunekaer/ftb).
- v1.3.26 [U] Ported to 1.19.2.
[F] Fixed Mineral Melting Furnace fluid extraction (issue #223, ty adkinss).

View file

@ -220,7 +220,7 @@ public class EdHopper
CompoundTag nbt = new CompoundTag();
block_power_signal_ = false;
writenbt(nbt, false);
boolean is_empty = true;
boolean is_empty = main_inventory_.isEmpty();
main_inventory_.clearContent();
reset_rtstate();
block_power_updated_ = false;