Skip to content

Commit

Permalink
Fix rendering bug
Browse files Browse the repository at this point in the history
Fix missing sides in the case that different liquids are next to
each other.
  • Loading branch information
4Denthusiast committed Aug 25, 2020
1 parent fec0da8 commit 345e7b9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.terasology.flowingliquids.rendering.primitives;

import org.terasology.math.Side;
import org.terasology.registry.In;
import org.terasology.entitySystem.systems.BaseComponentSystem;
import org.terasology.entitySystem.systems.RegisterSystem;
Expand Down Expand Up @@ -47,6 +48,10 @@ public void postBegin() {
for(Block block : blockManager.listRegisteredBlocks()) {
if(block.isLiquid() && block != debugLiquid) {
block.setMeshGenerator(new BlockMeshGeneratorLiquid(block, worldAtlas, flowIx));
for (Side side : Side.values()) {
// The rendered shapes won't have full sides, even if the basic shape does.
block.setFullSide(side, false);
}
}
}
}
Expand Down

0 comments on commit 345e7b9

Please sign in to comment.