Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
component:debug [2018/10/07 01:24]
payonel [Component: Debug]
component:debug [2018/10/07 01:29] (current)
payonel [Component: Debug]
Line 45: Line 45:
  
 <code lua> <code lua>
-  ​local debug = require("​component"​).debug +local debug = require("​component"​).debug 
-  local serialize = require("​serialization"​).serialize +local serialize = require("​serialization"​).serialize 
-  local x, y, z = debug.getX, debug.getY, debug.getZ +local x, y, z = debug.getX, debug.getY, debug.getZ 
-  local offset_x = -1 +local offset_x = -1 
-  local offset_z = 0 +local offset_z = 0 
-  local blocking, label, content = debug.scanContentsAt(x() - .5 + offset_x, y() - .5, z() - .5 + offset_z) +local blocking, label, content = debug.scanContentsAt(x() - .5 + offset_x, y() - .5, z() - .5 + offset_z) 
-  print(blocking,​ label, serialize(content))+print(blocking,​ label, serialize(content))
 </​code>​ </​code>​