Skip to content
Snippets Groups Projects
  1. Oct 01, 2016
  2. Aug 22, 2016
  3. Jul 26, 2016
    • Tim's avatar
      Builtin: Fix check for a player object in core.check_player_privs · 58eb5f39
      Tim authored
      core.check_player_privs accepts as first argument a name or player object, but just tested for a string.
      This caused crashes inside builtin, when being passed any unexpected types.
      
      This provides a better (duck-typing like) test, better error reporting.
      58eb5f39
  4. May 31, 2016
  5. Apr 21, 2016
    • Auke Kok's avatar
      Fix timer initialization. · a60aa8e2
      Auke Kok authored
      This fixes the problem that the first timer tick is an
      overrun and causes all timers to expire immediately.
      
      replaces #4003
      a60aa8e2
  6. Mar 07, 2016
  7. Feb 22, 2016
    • Jeija's avatar
      Add Lua interface to HTTPFetchRequest · 31e0667a
      Jeija authored
      This allows mods to perform both asynchronous and synchronous HTTP
      requests. Mods are only granted access to HTTP APIs if either mod
      security is disabled or if they are whitelisted in any of the
      the secure.http_mods and secure.trusted_mods settings.
      
      Adds httpfetch_caller_alloc_secure to generate random, non-predictable
      caller IDs so that lua mods cannot spy on each others HTTP queries.
      31e0667a
  8. Jan 29, 2016
    • Auke Kok's avatar
      New timer design. · ad884f23
      Auke Kok authored
      I could honestly not make much sense of the timer implementation
      that was here. Instead I've implemented the type of timer algorithm
      that I've used before, and tested it instead.
      
      The concept is extremely simple: all timers are put in an ordered
      list. We check every server tick if any of the timers have
      elapsed, and execute the function associated with this timer.
      
      We know that many timers by themselves cause new timers to be
      added to this list, so we iterate *backwards* over the timer
      list. This means that new timers being added while timers are
      being executed, can never be executed in the same function pass,
      as they are always appended to the table *after* the end of
      the table, which we will never reach in the current pass over
      all the table elements.
      
      We switch time keeping to minetest.get_us_time(). dtime is
      likely unreliable and we have our own high-res timer that we
      can fix if it is indeed broken. This removes the need to do
      any sort of time keeping.
      ad884f23
  9. Oct 22, 2015
    • Robert Zenz's avatar
      Add more ways to pass data to check_player_privs · c3284783
      Robert Zenz authored
      The callback can now be invoked with either the player object or name as
      the first parameter, and with either a table or a list of strings, like
      this:
      
          minetest.check_player_privs(player_name, { shout = true, fly = true })
          minetest.check_player_privs(player_name, "shout", "fly")
          minetest.check_player_privs(player, { shout = true, fly = true })
          minetest.check_player_privs(player, "shout", "fly")
      c3284783
  10. Sep 23, 2015
  11. Aug 13, 2015
  12. Jun 06, 2015
    • HybridDog's avatar
      Decrease minetest.after globalstep lag · 8383a61e
      HybridDog authored
      * abort if theres no active timer
      * only reduce the timer.time of all timers when its necessary
      * move updating timers_to_add into a seperate function
      8383a61e
  13. May 12, 2015
  14. Jan 16, 2015
  15. Jul 16, 2014
  16. May 08, 2014
  17. May 07, 2014
  18. Apr 29, 2014
  19. Apr 13, 2014
  20. Jan 11, 2014
  21. Nov 17, 2013
  22. Nov 02, 2013
  23. Oct 01, 2013
  24. Aug 15, 2013
  25. Jul 08, 2013
  26. Jul 07, 2013
  27. May 25, 2013
    • sapier's avatar
      Move scriptapi to separate folder (by sapier) · ab433775
      sapier authored
      On the lua side, notably minetest.env:<function>(<args>) should now
      be replaced by minetest.<function>(<args>).
      The old way is and will stay supported for a long time.
      
      Also:
      Update and clean up lua_api.txt (by celeron55)
      Move EnvRef to lua and remove add_rat and add_firefly (by kahrl)
      Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)
      ab433775
  28. Mar 19, 2013
  29. Mar 17, 2013
  30. Mar 06, 2013
  31. Jun 03, 2012
  32. Apr 09, 2012
  33. Apr 08, 2012
  34. Apr 01, 2012
Loading