Create Fabric

Create Fabric

10M Downloads

Basin comparator crash

Hexylian opened this issue ยท 1 comments

commented

Describe the Bug

Game crashes when pumping water into a basin that is being read by a comparator

Reproduction Steps

  1. Place an empty basin
  2. Get a comparator to read the state of the basin
  3. Pump in water
  4. Server crashes
    ...

Expected Result

In previous versions fluid level would not be read by a comparator, I was building a potion brewing machine and tried to make use of this fact to detect when the ingredients were not longer in the basin, but it ended up crashing the game when I pumped in water.

Screenshots and Videos

image

Crash Report or Log

https://pastebin.com/nBHj7x4K

Operating System

Windows 10

Mod Version

0.5.0i

Minecraft Version

1.19.2

Other Mods

Fabric api

Additional Context

No response

commented

Additional notes:
Placing a comparator reading out of a basin already filled with water does not cause a server crash.
Manually filling the basin being read by the comparator also does not cause a crash, only doing so with a pump does.

(edit)
Filling the basin with a deployer holding a bucket of water also crashes the server
https://pastebin.com/iyg3qXas (crash report for the deployer scenario)

(2nd edit)
Moving the basin into a position where it can be read by the comparator does not cause a crash.

(3rd edit)
The same crash also happens when emptying a basin.

It also crashes when the fluid type changes, for example when water and nether wart get mixed into an awkward potion.