daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Feb 26th, 2018 8 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function areas:load()
  2.         local file, err = io.open(self.config.filename, "r")
  3.         if err then
  4.  
  5. minetest.log("error","FATAL AREAS ERROR ... COULD NOT LOAD FROM FILE, ERROR CODE: "..err)
  6. minetest.request_shutdown("PROTECTION FILE COULD NOT BE LOADED ... SHUTTING DOWN", true)
  7.  
  8.                 self.areas = self.areas or {}
  9.                 return err
  10.         end
  11.         self.areas = minetest.deserialize(file:read("*a"))
  12.         if type(self.areas) ~= "table" then
  13.                 minetest.log("error","AREAS FROM FILE ARE NOT A TABLE")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top