AbdElAziz333 / Canary

A performance mod designed to optimize Minecraft's general performance and unofficial fork of Lithium mod for Minecraft Forge.
https://www.curseforge.com/minecraft/mc-mods/canary
GNU Lesser General Public License v3.0
41 stars 3 forks source link

[1.19.2] Crash when flowing fluid touches Hopper input or output edge #138

Closed samuel-hunter closed 1 year ago

samuel-hunter commented 1 year ago

Version Information

Reproducible with no other mods installed.

Actual Behavior

When a fluid flows to the top of a Hopper, or the output edge of a Hopper, either the server crashes if on Multiplayer, or if on Singleplayer, the entire game crashes (not just its internal server) with a Caused by: java.lang.ClassCastException: class net.minecraft.server.level.ServerLevel cannot be cast to class com.abdelaziz.canary.common.world.blockentity.BlockEntityGetter.

Even more strange, after the hopper and fluid is cleaned up, then any block that is at the position of the old hopper, once broken, suppresses the same Exception, and the block item is not dropped.

Reproduction Steps

  1. Place a water bucket two blocks above a hopper
  2. Wait for water to flow down

Or:

  1. Place a water bucket two blocks manhattan distance away from the output side of a hopper
  2. Wait for water to flow to the hopper

Other Information

Here's all the experiments I've done:

ghost commented 1 year ago

I have the same error on a brand new world. I cant even get to join it after generation. I switched to 1.09version and it works. 2.0 version must have some issue or incompatibility.

davidromrell commented 1 year ago

same issue, mine was worsened by an interaction with ferritecore.