forceload block bugfix.

This commit is contained in:
Joachim Stolberg 2019-02-16 10:35:33 +01:00
parent 7e064c9227
commit 0e95c2a76d
2 changed files with 16 additions and 1 deletions

@ -1,6 +1,19 @@
# Release Notes for ModPack TechPack [techpack] # Release Notes for ModPack TechPack [techpack]
## V2.02.02 (2019-02-216)
### Additions
- sl_controller: add battery status command
### Removals
### Changes
### Fixes
- forceload block bugfix
## V2.02.01 (2019-01-29) ## V2.02.01 (2019-01-29)

@ -159,7 +159,9 @@ minetest.register_node("tubelib:forceload", {
after_dig_node = function(pos, oldnode, oldmetadata, digger) after_dig_node = function(pos, oldnode, oldmetadata, digger)
local player = minetest.get_player_by_name(oldmetadata.fields.owner) local player = minetest.get_player_by_name(oldmetadata.fields.owner)
del_pos(pos, player) if player then
del_pos(pos, player)
end
minetest.forceload_free_block(pos, true) minetest.forceload_free_block(pos, true)
tubelib.unmark_region(oldmetadata.fields.owner) tubelib.unmark_region(oldmetadata.fields.owner)
end, end,