KenRouKoro / C3H6N6O6

这是一个用于实体多线程运算的模组
MIT License
34 stars 1 forks source link

Initial fixes #25

Open PapiOphidian opened 1 year ago

PapiOphidian commented 1 year ago

This PR is a draft for now because it removes some mod compatibility mixins and doesn't 100% work all the time.

I believe the only issues remaining is that the FallingBlockEntity gives some issues and can cause a crash.

Chests also automatically close after a seemingly random amount of time. It's possible it's just double chests. I tested some other inventories like single chests and barrels and no issues seemingly.

I do need your help on this since I am only a beginner on mc modding and a lot of my stuff could be wrong or done better. I've just mostly done blanket fixes.

PapiOphidian commented 1 year ago

It looks like chests automatically closing is coming from this line:

if (!this.world.isClient && this.currentScreenHandler != null && !this.currentScreenHandler.canUse(this)) {
    this.closeHandledScreen();
    this.currentScreenHandler = this.playerScreenHandler;
}

Although it perplexes me since this should not be run in the case of chests unless the screen handler is being updated with one that can't be used.