mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 07:01:27 +02:00
Fix sim.neighbours yielding the center particle
The wiki says it shouldn't. Broken in 6a6b14f871
.
This commit is contained in:
@@ -2345,6 +2345,10 @@ static int NeighboursClosure(lua_State *l)
|
||||
r = 0;
|
||||
}
|
||||
}
|
||||
if (cx == px && cy == py)
|
||||
{
|
||||
r = 0;
|
||||
}
|
||||
if (r)
|
||||
{
|
||||
lua_pushnumber(l, x);
|
||||
|
Reference in New Issue
Block a user