5417 Commits

Author SHA1 Message Date
Dylan K. Taylor
d1852834de Revert "Added capability to dump AsyncWorker memory"
This reverts commit eb4594348b6fe4f8af83d5fd386f393956f7b561.

This is far too unstable with more than one worker thread.
2017-08-22 20:46:20 +01:00
Dylan K. Taylor
eb4594348b Added capability to dump AsyncWorker memory 2017-08-22 19:57:00 +01:00
Dylan K. Taylor
5a3ce42f74 Updated RakLib submodule (again) 2017-08-22 19:55:47 +01:00
Dylan K. Taylor
0712979908 Fixed blastResistance array not being initialized 2017-08-22 19:45:53 +01:00
Dylan K. Taylor
ae715cf2f2 Updated RakLib submodule 2017-08-22 17:54:45 +01:00
Dylan K. Taylor
3a5fc78c53 Fixed players getting kicked for flying when standing still when blocks near them get updated, fixed item movement being too slippery 2017-08-22 17:47:48 +01:00
Dylan K. Taylor
445a67954d Merge changes from master 2017-08-22 14:13:31 +01:00
Dylan K. Taylor
50580f4408 Added server ID proper to ping response, fixes #1208, closes #1306 2017-08-22 12:39:33 +01:00
Dylan K. Taylor
4250e99e3a Updated for 1.2.0.22 2017-08-22 11:35:56 +01:00
Dylan K. Taylor
8a35b9da29 Added some documentation 2017-08-22 10:28:43 +01:00
Dylan K. Taylor
c32b75fa18 Further (major!) performance enhancements to entity ticking 2017-08-21 20:28:56 +01:00
Dylan K. Taylor
b8ade18888 Fixed double plants and beds sometimes dropping in creative 2017-08-21 19:25:04 +01:00
Dylan K. Taylor
592ce3c9e9 Adding some missed commands typehints and documentation 2017-08-21 19:02:30 +01:00
Dylan K. Taylor
876659cc73 Item factory refactor and added capability to register custom items 2017-08-21 17:49:26 +01:00
Dylan K. Taylor
604d11a8fd import cleanup and fixed an inspection 2017-08-21 17:39:02 +01:00
Dylan K. Taylor
d2ace6bdd2 added some typedocs
shut up PhpStorm
2017-08-21 17:17:47 +01:00
Dylan K. Taylor
672b7610a9 Maybe I should stop using PhpStorm EAPs 2017-08-21 13:51:58 +01:00
Dylan K. Taylor
456ddd3fb3 Removed obsolete parameters from Entity->attack() and Entity->heal() 2017-08-21 13:25:11 +01:00
Dylan K. Taylor
b62597fe63 Fixed some minor issues in Player events API 2017-08-21 13:05:32 +01:00
Dylan K. Taylor
9e54980ded Fixed some usages of Block::get() 2017-08-21 12:58:35 +01:00
Dylan K. Taylor
121777375e Rewired eating 2017-08-21 12:52:20 +01:00
Dylan K. Taylor
93e149e91c Rewiring release-item action to fix bows 2017-08-20 22:14:31 +01:00
Dylan K. Taylor
1f70a7830e Branch merge 2017-08-20 21:07:19 +01:00
Dylan K. Taylor
2f3c77c68a Fixed entity move performance issue and a ton of entity movement bugs
- fixed zombies and villagers movement not updating
- fixed dropped items "movement" lagging the living **** out of the server when not actually moving
- fixed arrows not falling when the supporting block is removed
- fixed knockback
- fixed zombies + villagers being un-attackable after hitting them

... the list goes on
2017-08-20 20:31:09 +01:00
Dylan K. Taylor
02f42eba48 Move block registration to its own class 2017-08-20 18:05:01 +01:00
Dylan K. Taylor
9451dd361e Fixed some issues in MovingObjectPosition 2017-08-20 17:12:25 +01:00
Dylan K. Taylor
da83b879c0 Major performance improvement to explosions
These changes produce about 3x performance improvements. Some numbers
from my machine (i7-7700k @ 4.5GHz) with TNT:
- before changes: 35ms
- after changes: 11ms

in powersave mode (0.9GHz):
- before changes: 170ms
- after changes: 60ms
2017-08-20 16:12:30 +01:00
Dylan K. Taylor
d1fd6aef44 add type doc 2017-08-20 14:04:02 +01:00
Dylan K. Taylor
cd02f1e4be Minor performance improvement to explosions
This improves calculation time by 20-25% per explosion on flat terrain.
2017-08-20 13:28:31 +01:00
Dylan K. Taylor
eeedcf7332 Refactor Block->getResistance() -> Block->getBlastResistance() and added some documentation 2017-08-20 13:25:43 +01:00
Dylan K. Taylor
216fc6fe31 Fixed incorrect comment 2017-08-20 12:17:44 +01:00
Dylan K. Taylor
17053389b0 Added memory limits for AsyncWorkers 2017-08-20 12:15:48 +01:00
Dylan K. Taylor
8475c63426 Remove redundant brackets from WoodenSlab 2017-08-20 11:02:34 +01:00
Dylan K. Taylor
f2ff0198cc Fixed slab placement, close #145 2017-08-20 10:52:07 +01:00
Dylan K. Taylor
c394aea803 Replaced more literal ints with Vector3 constants 2017-08-20 10:43:48 +01:00
Dylan K. Taylor
e1d894057c Changed face position floating-point params to Vector3s 2017-08-20 10:23:34 +01:00
Dylan K. Taylor
5b3bed8b06 Don't check entity movement or in-air ticks if player dies due to movement, close #1226
Not an ideal solution but it'll do.
2017-08-20 09:49:02 +01:00
Dylan K. Taylor
159b2e3d5e Merge branch 'master' into mcpe-1.2 2017-08-19 21:42:33 +01:00
Dylan K. Taylor
bed68a012d Don't bother doing null checks for block copy
This will never be null if the block factory was initialized correctly. This will also cause a crash if bugs like e88053faf452df60262aad3e40c83dfed7f5dfa3 occur again in the future instead of silently causing unexpected behaviour.
2017-08-19 21:29:24 +01:00
Dylan K. Taylor
e0307411da Cleaned up PlayerList handling 2017-08-19 19:36:15 +01:00
Dylan K. Taylor
e88053faf4 ... 2017-08-19 18:25:08 +01:00
Dylan K. Taylor
e51106e64c Fixed bad overrides of getBoundingBox() 2017-08-19 17:16:22 +01:00
Dylan K. Taylor
0e24596aed Changed block construction calls to Block::get() 2017-08-19 13:46:17 +01:00
Dylan K. Taylor
276fccf4bb Typehinted block events API 2017-08-19 11:25:32 +01:00
Dylan K. Taylor
64f2e7587d Some cleanup and added missing strict types declare for EndRod 2017-08-19 11:11:49 +01:00
Encritary
bedfca8698 Fix some type errors on custom ExplodePacket use (#1297) 2017-08-19 08:16:10 +01:00
Dylan K. Taylor
4a3f01703e Removed redundant override method 2017-08-18 19:52:23 +01:00
Dylan K. Taylor
41c6cb6f97 Added Block->getVariantBitmask(0 to cut down on getDrops() boilerplate, fixed several blocks incorrectly retaining meta when broken 2017-08-18 19:49:28 +01:00
Dylan K. Taylor
384a4b3a09 Who put this here? 2017-08-18 18:59:34 +01:00
Dylan K. Taylor
e5e76d4c93 Merge branch 'master' into mcpe-1.2 2017-08-18 18:39:39 +01:00