From f7272e4a8f09d11ee41b068277de1f61993cfaa8 Mon Sep 17 00:00:00 2001 From: jj Date: Sun, 23 Sep 2012 10:58:31 +0200 Subject: [PATCH] ruby: use cursor as default map_tile_at arg --- plugins/ruby/map.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ruby/map.rb b/plugins/ruby/map.rb index d662a3436..4e8bf9100 100644 --- a/plugins/ruby/map.rb +++ b/plugins/ruby/map.rb @@ -26,7 +26,7 @@ module DFHack end end - def map_tile_at(x, y=nil, z=nil) + def map_tile_at(x=df.cursor, y=nil, z=nil) x = x.pos if x.respond_to?(:pos) x, y, z = x.x, x.y, x.z if x.respond_to?(:x) b = map_block_at(x, y, z)