server/scripts/tools/oceanfill.lua

12 lines
202 B
Lua
Raw Permalink Normal View History

2014-04-25 08:41:52 +02:00
p = plane.get(0)
w, h = p:size()
print(p, w, h)
for x=0,w-1 do
for y=0,h-1 do
r = get_region(x,y)
if r==nil then
r = region.create(x, y, "ocean")
end
end
end