fix: ensure fluid packets drop when part is broken (#418)

This commit is contained in:
Caelix authored and GitHub committed 2026-04-16 22:53:19 +02:00
1 parent e66050c78d
commit f98e44d106
2 files changed
+12

No files matched your search

@@ -51,6 +51,12 @@ public class PartFluidInterface extends PartInterface implements IDualHost, ICus
this.customButtonDataObject = new FluidInterfaceButtons(false);
}
@Override
public void getDrops(final List<ItemStack> drops, final boolean wrenched) {
this.fluidDuality.addDrops(drops);
super.getDrops(drops, wrenched);
}
@MENetworkEventSubscribe
public void stateChange(final MENetworkChannelsChanged c) {
fluidDuality.onChannelStateChange(c);
@@ -51,6 +51,12 @@ public class PartFluidP2PInterface extends PartP2PInterface implements IDualHost
this.customButtonDataObject = new FluidInterfaceButtons(false);
}
@Override
public void getDrops(final List<ItemStack> drops, final boolean wrenched) {
this.dualityFluid.addDrops(drops);
super.getDrops(drops, wrenched);
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getTypeTexture() {