1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 10:25:21 +02:00
Files
luanti/src
Jozef Behran bf22184d6e Fix unnecessary exception use in 3 more methods (#8791)
* Fix unnecessary exception use in Server::SendBlocks

The code in this method calls getBlockNoCreate and then
messes around with try...catch to skip blocks which are not
in the memory. Additionally, it repeatedly calls
m_env.getMap() inside this loop. Speed the code up by
extracting the m_env.getMap() out of the loop and getting
rid of the try...catch.

* Fix unnecessary exception use in Server::SendBlock

Another unnecessary try...catch is slowing down
Server::SendBlock. Remove that to speed it up and get a nice
side effect of simplifying the code in question.

* Fix unnecessary exception use in MMVManip::initialEmerge

Remove another unneeded exception usage from
MMVManip::initialEmerge to speed that code up and simplify
it but be careful to not remove the braces as there is a
TimeTaker in use there.
2019-08-13 20:02:50 +02:00
..
2019-08-13 19:56:55 +02:00
2019-08-13 19:56:55 +02:00
2019-08-13 19:56:55 +02:00
2017-08-17 22:19:39 +02:00
2019-08-13 19:56:55 +02:00
2018-04-19 20:14:53 +01:00
2017-09-26 20:30:14 +02:00
2019-01-16 13:39:13 +01:00
2017-08-30 08:09:41 +02:00
2019-08-13 19:56:55 +02:00
2018-03-30 18:32:52 +02:00
2017-08-18 07:44:52 +02:00
2017-08-17 22:19:39 +02:00
2018-11-18 11:48:16 +01:00
2019-08-04 16:12:52 +02:00
2017-08-17 22:19:39 +02:00
2018-07-21 03:09:39 -07:00
2017-08-19 11:29:46 +02:00
2019-08-07 19:16:31 +02:00
2019-08-07 19:16:31 +02:00
2019-08-13 19:56:55 +02:00
2019-08-13 19:56:55 +02:00
2017-08-17 22:19:39 +02:00
2017-08-17 22:19:39 +02:00
2017-09-26 20:30:14 +02:00
2018-04-19 20:14:53 +01:00
2019-08-07 19:16:31 +02:00
2019-08-07 19:16:31 +02:00
2017-08-24 17:54:10 +02:00
2017-08-17 22:19:39 +02:00