Skip to content

Commit

Permalink
forceload block bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
joe7575 committed Feb 16, 2019
1 parent 7e064c9 commit 0e95c2a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# 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)

Expand Down
4 changes: 3 additions & 1 deletion tubelib/forceload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ minetest.register_node("tubelib:forceload", {

after_dig_node = function(pos, oldnode, oldmetadata, digger)
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)
tubelib.unmark_region(oldmetadata.fields.owner)
end,
Expand Down

0 comments on commit 0e95c2a

Please sign in to comment.