mesecons: Do not crash server if world border is depowered #79

Merged
cora merged 1 commits from fix-issue-78 into master 2021-05-30 00:29:52 +02:00
Owner
Problem

TRACKING ISSUE: #78

Solution

Check node for nil.

Details

The same fix applied in MineClone2.

Testing Steps
  1. Put lever at world border
  2. Flip it on and off
  3. Server should not crash
##### Problem TRACKING ISSUE: #78 ##### Solution Check node for nil. ##### Details The same fix applied in MineClone2. ##### Testing Steps 1. Put lever at world border 2. Flip it on and off 3. Server should not crash
ryvnf added 1 commit 2021-05-28 19:27:46 +02:00
ryvnf added the
bug
critical
labels 2021-05-28 19:28:34 +02:00
Owner
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 fac4a386574564e95111e719120a794f8f9f3b4b … - 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 27828b6317f5f509588b2c5482109fc504bfb02a … - Start a singleplayer game in the world you created before. - Press the button. The game should not crash one second later.
cora approved these changes 2021-05-30 00:19:02 +02:00
Dismissed
cora left a comment
Member
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.

##### More specific testing steps On commit fac4a386574564e95111e719120a794f8f9f3b4b … - 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. [x] - Start a singleplayer game in that world in survival mode (creative mode flag unchecked) with damage enabled (Enable damage). [x] - In the game console, type "/grantme all" and press enter. [x] - In the game console, type “/teleport 30927,2,0” and press enter. [x] - In the game console, type “/give singleplayer mesecons_button:button_stone_off”. [x] - Place the button on the sand directly below you. [x] - Press the button. The game should crash one second later. You should see a traceback. [x] On commit 27828b6317f5f509588b2c5482109fc504bfb02a … - Start a singleplayer game in the world you created before. [x] - Press the button. The game should not crash one second later. [x] Everything works as expected i.e. the game does not crash after applying the fix.
cora dismissed cora’s review 2021-05-30 00:22:30 +02:00
Reason:

I have done it wrong - bad cora

cora approved these changes 2021-05-30 00:25:20 +02:00
cora left a comment
Member
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.

##### More specific testing steps On commit fac4a386574564e95111e719120a794f8f9f3b4b … - [x] 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. - [x] Start a singleplayer game in that world in survival mode (creative mode flag unchecked) with damage enabled (Enable damage). - [x] In the game console, type "/grantme all" and press enter. - [x] In the game console, type “/teleport 30927,2,0” and press enter. - [x] In the game console, type “/give singleplayer mesecons_button:button_stone_off”. - [x] Place the button on the sand directly below you. - [x] Press the button. The game should crash one second later. You should see a traceback. On commit 27828b6317f5f509588b2c5482109fc504bfb02a … - [x] Start a singleplayer game in the world you created before. - [x] Press the button. The game should not crash one second later. Everything works out as expected: Crash without and no crash with the fix.
cora merged commit 3ee2ef0618 into master 2021-05-30 00:29:52 +02:00
cora deleted branch fix-issue-78 2021-05-30 00:31:28 +02:00
This repo is archived. You cannot comment on pull requests.
No description provided.