Skip to content

Instantly share code, notes, and snippets.

View sofar's full-sized avatar
🤦‍♂️
I'm drowning in the absence of time.

sofar

🤦‍♂️
I'm drowning in the absence of time.
View GitHub Profile
diff --git a/src/map.cpp b/src/map.cpp
index f8bbee18..749cf8bb 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -44,6 +44,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "database.h"
#include "database-dummy.h"
#include "database-sqlite3.h"
+#include "script/serverscripting.h"
#include <deque>
struct TileSpec {
class ITexture * texture; /* 0 8 */
u32 texture_id; /* 8 4 */
class SColor color; /* 12 4 */
u8 material_type; /* 16 1 */
u8 material_flags; /* 17 1 */
u8 rotation; /* 18 1 */
u8 emissive_light; /* 19 1 */
u32 shader_id; /* 20 4 */
class ITexture * normal_texture; /* 24 8 */
struct TileSpec {
u32 texture_id; /* 0 4 */
/* XXX 4 bytes hole, try to pack */
class ITexture * texture; /* 8 8 */
class ITexture * normal_texture; /* 16 8 */
class ITexture * flags_texture; /* 24 8 */
u8 material_type; /* 32 1 */
u8 material_flags; /* 33 1 */
die__process_class: tag not supported 0x2f (template_type_parameter)!
dwarf_expr: unhandled 0x12 DW_OP_ operation
dwarf_expr: unhandled 0x12 DW_OP_ operation
dwarf_expr: unhandled 0x12 DW_OP_ operation
dwarf_expr: unhandled 0x12 DW_OP_ operation
dwarf_expr: unhandled 0x12 DW_OP_ operation
dwarf_expr: unhandled 0x12 DW_OP_ operation
die__process_function: tag not supported 0x4107 (GNU_template_parameter_pack)!
die__process_class: tag not supported 0x30 (template_value_parameter)!
die__process_class: tag not supported 0x4106 (GNU_template_template_param)!
@sofar
sofar / stats.txt
Created April 11, 2017 03:50
minetest_game contributions for .lua files, by author
$ git ls-files | grep "\.lua" | while read f; do git blame --line-porcelain $f | grep '^author '; done | sort -f | uniq -ic | sort -n -r
4443 author paramat
2784 author PilzAdam
2667 author Auke Kok
653 author BlockMen
477 author rubenwardy
464 author SmallJoker
430 author ShadowNinja
337 author webdesigner97
292 author tenplus1
--[[
Timer - a high precision, saveable timer class
Copyright (C) 2017 - Auke Kok <sofar@foo-projects.org
"timer" is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1
local me
local function zz()
if not me then
me = core.localplayer
print(dump(me))
else
print(minetest.pos_to_string(me:get_pos()))
end
minetest.after(1, zz)
local me
local function zz()
if not me then
print("waiting")
me = core.localplayer
else
print(minetest.pos_to_string(me:get_pos()))
end
minetest.after(1, zz)
  • 231ac33d Bump version to 0.4.15 (sfan5)

  • 5114329a Final update to credits before release (Craig Robbins)

  • a17bcb17 Translated using Weblate (Russian) (Nikolay) Currently translated at 59.2% (544 of 918 strings)

  • 3fa7c5a4 Translated using Weblate (Portuguese (Brazil)) (Cold Meson 06) Currently translated at 99.5% (914 of 918 strings)

diff --git a/src/map.cpp b/src/map.cpp
index 504760d09..5e0a759dc 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -2700,6 +2700,9 @@ void MMVManip::blitBackAll(std::map<v3s16, MapBlock*> *modified_blocks,
block->copyFrom(*this);
+ m_map->removeNodeMetadata(p);
+ m_map->removeNodeTimer(p);