Modern Industrialization

Modern Industrialization

4M Downloads

Crash when attaching pump to fluid pipe

Su5eD opened this issue ยท 2 comments

commented

Attaching a fluid pump to a fluid pipe results in a crash.

Environment

  • Minecraft 1.20.1
  • Fabric Loader 0.14.22
  • Fabric API 0.87.0+1.20.1
  • Modern Industrialization 1.7.0-beta

Steps to reproduce

  1. Place a fluid tank
  2. Connect a fluid pipe to the tank
  3. Use a fluid pump on the connected pipe block

Logs

Crash report

Suspect

Passing a null component into the button class.

public NetworkFluidButton(int x, int y, OnPress onPress, OnTooltip tooltipSupplier, FluidPipeInterface iface) {
super(x, y, 16, 16, null, onPress, tooltipSupplier);

commented

I get a similar crash when trying to open the UI on fluid and item pipes. https://mclo.gs/ZzO20tB

commented

Fixed in 354b6d5.