ScicraftLearn / Minelabs

A mod to add physics and chemistry to your life (and Minecraft)
13 stars 8 forks source link

Quantum Fields: Fix priority of floor placing over a cloud spot #847

Open JoeyDP opened 8 months ago

JoeyDP commented 8 months ago

Only place atomic floor when the cloud block would be removed, not when the player mined it. Otherwise a cloud may get separated from its master.

JoeyDP commented 5 months ago

Seems very hard to do due to the order in which the functions are called. Cloud is placed back when player mines it in afterBreak, but the onStateReplaced method prevents the first method from being called if it modifies the state (to floor).

Given that this is quite an edge case that doesn't significantly impact gameplay, I am moving this to a later milestone.