Fix rain failing to insert material

liquid_container
Lukas Werling 2016-03-23 16:01:43 +01:00
parent 26f030f18a
commit 43177e8951
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ private func DropHit(string material_name, int color, int x_orig, int y_orig)
var x = AbsX(x_orig), y = AbsY(y_orig);
while (GBackSemiSolid(x, y - 1)) y--;
InsertMaterial(Material(material_name), x, y);
InsertMaterial(Material(material_name), x, y - 1);
// Some materials cast smoke when hitting water.
if (GetMaterial(x,y) == Material("Water") && SmokeyMaterial(material_name))