mesecons: Do not crash server if world border is depowered #79
No reviewers
Labels
No Label
blocker
bug
code quality
confirmed
critical
discussion
high priority
incompatibility
incomplete feature
invalid
low priority
missing feauture
needs testing
packet spam
performance
project
regression
translations
unconfirmed
in review
ready for review
No Milestone
No project
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mineclonia/Mineclonia#79
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix-issue-78"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
TRACKING ISSUE: #78
Solution
Check node for nil.
Details
The same fix applied in MineClone2.
Testing Steps
More specific testing steps
On commit
fac4a38657
…Generate a new world with mapgen v7, with the seed “test_crashbutton” and only the following mapgen options enabled: Caves, Dungeons, Decorations, Caverns, Ravines, Mountains.
Start a singleplayer game in that world in survival mode (creative mode flag unchecked) with damage enabled (Enable damage).
In the game console, type "/grantme all" and press enter.
In the game console, type “/teleport 30927,2,0” and press enter.
In the game console, type “/give singleplayer mesecons_button:button_stone_off”.
Place the button on the sand directly below you.
Press the button. The game should crash one second later. You should see a traceback.
On commit
27828b6317
…Start a singleplayer game in the world you created before.
Press the button. The game should not crash one second later.
More specific testing steps
On commit
fac4a38657
…Generate a new world with mapgen v7, with the seed “test_crashbutton” and only the following mapgen options enabled: Caves, Dungeons, Decorations, Caverns, Ravines, Mountains.
Start a singleplayer game in that world in survival mode (creative mode flag unchecked) with damage enabled (Enable damage).
In the game console, type "/grantme all" and press enter.
In the game console, type “/teleport 30927,2,0” and press enter.
In the game console, type “/give singleplayer mesecons_button:button_stone_off”.
Place the button on the sand directly below you.
Press the button. The game should crash one second later. You should see a traceback.
On commit
27828b6317
…Start a singleplayer game in the world you created before.
Press the button. The game should not crash one second later.
Everything works as expected i.e. the game does not crash after applying the fix.
I have done it wrong - bad cora
More specific testing steps
On commit
fac4a38657
…Generate a new world with mapgen v7, with the seed “test_crashbutton” and only the following mapgen options enabled: Caves, Dungeons, Decorations, Caverns, Ravines, Mountains.
Start a singleplayer game in that world in survival mode (creative mode flag unchecked) with damage enabled (Enable damage).
In the game console, type "/grantme all" and press enter.
In the game console, type “/teleport 30927,2,0” and press enter.
In the game console, type “/give singleplayer mesecons_button:button_stone_off”.
Place the button on the sand directly below you.
Press the button. The game should crash one second later. You should see a traceback.
On commit
27828b6317
…Start a singleplayer game in the world you created before.
Press the button. The game should not crash one second later.
Everything works out as expected: Crash without and no crash with the fix.