Dylan K. Taylor
ceeed57118
Player: remove iusername premature optimization
2019-07-05 17:28:37 +01:00
Dylan K. Taylor
45b0cbc796
Human: remove getRawUniqueId() premature optimization
...
this is never used in a hot path and presents a potential for inconsistency.
2019-07-05 17:17:48 +01:00
Dylan K. Taylor
2e01bd1029
cleanup imports from f356bf0893959808ec65c39fd66f562bd7da4790
2019-07-05 16:34:22 +01:00
Dylan K. Taylor
77919b70b2
Stop cloning Color objects
...
since these are now immutable, there's no need to clone them.
2019-07-05 16:20:56 +01:00
Dylan K. Taylor
f356bf0893
Extracted an EffectManager unit from Living
2019-07-05 16:15:58 +01:00
Dylan K. Taylor
fe850a184c
deal with fern mapping properly
2019-07-05 15:14:03 +01:00
Dylan K. Taylor
2bd2e1125c
Block: don't be stupid in getSide()
2019-07-05 15:04:13 +01:00
Dylan K. Taylor
b021cc2138
ItemFactory: add PhpDoc for getAllRegistered()
2019-07-05 13:46:06 +01:00
Dylan K. Taylor
453c5a329d
Tile: remove useless code
2019-07-05 13:41:18 +01:00
Dylan K. Taylor
ceb6529ee3
encapsulate light recalculation logic inside LightUpdate classes
...
now we can do a standard light recalculation from anywhere.
2019-07-04 19:55:48 +01:00
Dylan K. Taylor
3d118a415c
Merge branch 'stable'
2019-07-04 18:48:53 +01:00
Dylan K. Taylor
7fc45bc5c3
partial fix for #2986
2019-07-04 18:18:42 +01:00
Dylan K. Taylor
3bdf740597
formatting
2019-07-04 18:04:23 +01:00
Dylan K. Taylor
9ed13bf112
Color: make use of intdiv()
2019-07-04 18:03:45 +01:00
Dylan K. Taylor
a125980ada
utils: Color is now immutable
...
as is always the case with mutability, allowing this creates lots of complications that aren't worth the hassle.
2019-07-04 18:00:48 +01:00
Dylan T
062e692069
AAAAAAAAAAAAAAAAAAAA
2019-07-03 20:02:33 +01:00
Dylan K. Taylor
1d96c1810f
wtf PhpStorm
2019-07-03 19:20:24 +01:00
Dylan K. Taylor
4c5d8c12dd
[ci skip] more updates to changelog
2019-07-03 18:32:20 +01:00
Dylan K. Taylor
134a87ec7d
BlockFactory: regenerate TODOs
2019-07-03 18:26:01 +01:00
Dylan K. Taylor
ee885bb725
shorten BlockToolType constants
2019-07-03 17:57:11 +01:00
Dylan K. Taylor
85051554c4
disallow logins from players with phony XUIDs
...
this simplifies XUID handling.
2019-07-03 16:47:02 +01:00
Dylan K. Taylor
e07523056d
Merge branch 'stable'
2019-07-03 16:35:29 +01:00
Takuya Sawada
ab4b1be363
add constants for boat action of AnimatePacket
...
closes #2991
2019-07-03 16:30:45 +01:00
Dylan K. Taylor
4a6d4953f2
updated consistency check for previous commit
2019-07-03 16:19:24 +01:00
Dylan K. Taylor
80b29250c8
added all the element blocks
2019-07-03 16:17:17 +01:00
Luke
02bbf50dbe
Make DragonEgg::teleport public ( #2992 )
2019-07-03 15:04:17 +01:00
Dylan K. Taylor
5b02ca8a64
InGamePacketHandler: return unhandled for command requests without a leading /
...
some clients send things without the /, f.e. websocket stuff, and we aren't ready to handle that properly yet. The result is that the command gets dumped directly into the chat instead of being unhandled.
2019-07-03 14:34:22 +01:00
Dylan K. Taylor
720254f64f
fix crash on falling block above the height limit, closes #2803
2019-07-02 19:56:26 +01:00
Dylan K. Taylor
d23eeff832
FallingBlock: remove useless check
2019-07-02 19:54:56 +01:00
Dylan K. Taylor
206b397ee1
Living: drop useless knockBack() parameters, closes #2634
2019-07-02 19:52:51 +01:00
Dylan K. Taylor
b0a85155d7
[ci skip] add inventory changes to changelog
2019-07-02 14:06:11 +01:00
Encritary
3c7f68dc1e
Fix Entity::isNameTagAlwaysVisible() was returning the wrong value ( #2990 )
...
* Fix Entity::isNameTagAlwaysVisible() was returning the wrong value
* "> 0" to "=== 1"
2019-07-02 10:44:41 +01:00
Dylan K. Taylor
b90be8dc5f
fix PhpStorm's screwups
2019-07-01 18:49:07 +01:00
Dylan K. Taylor
7aa4d974ef
move crafting stuff to pocketmine\crafting namespace
2019-07-01 18:47:09 +01:00
Dylan K. Taylor
601ba4264d
[ci skip] added incomplete changelog for 4.0
2019-07-01 17:42:18 +01:00
Dylan K. Taylor
a325b1f3a1
Merge branch 'next-minor'
2019-07-01 17:19:57 +01:00
Dylan K. Taylor
9e993aa83f
ClosureTask: drop requirement for void return type
...
this creates unnecessary boilerplate for many inline usages.
2019-07-01 17:19:19 +01:00
Dylan K. Taylor
fab12707ae
Merge branch 'stable' into next-minor
2019-07-01 17:18:20 +01:00
Dylan K. Taylor
b1ef1026ee
WorldManager: Use the world's own logger to report tick overload
2019-07-01 15:24:45 +01:00
Dylan K. Taylor
1156d5bdba
batch optimize imports
2019-06-30 14:51:44 +01:00
Dylan K. Taylor
5e5f43242e
Extract a HandlerListManager unit from HandlerList
2019-06-30 14:49:09 +01:00
Dylan K. Taylor
68bff6cf69
moved RegisteredListener to event namespace
2019-06-30 14:31:53 +01:00
Dylan K. Taylor
80d4eeaa3c
fix some occurrences of terrain truncation during generation
2019-06-29 11:14:34 +01:00
Dylan K. Taylor
0d769aab48
Removed anti-noclip checks
2019-06-29 11:10:20 +01:00
Dylan K. Taylor
44a205b1cc
Remove MainLogger singleton and remaining MainLogger hard-dependencies
2019-06-28 16:36:17 +01:00
Dylan K. Taylor
a4b50e57a4
move player arm swing processing to server side
2019-06-28 15:08:51 +01:00
Dylan K. Taylor
e7733718b6
divide network\mcpe namespace into more subnamespaces
2019-06-27 19:39:59 +01:00
Dylan K. Taylor
872b6ed708
Switch back to using fast-serialize for chunk send prepare
...
network serialize on the main thread is 3-5x more expensive than fast-serialize right now.
2019-06-27 19:28:47 +01:00
Dylan K. Taylor
0e4966dfdf
Split ProcessLoginTask into two tasks: 1) verify, 2) server handshake
2019-06-27 18:09:43 +01:00
Dylan K. Taylor
193a41566d
NetworkSession: Show the correct name on the player list
2019-06-27 17:04:36 +01:00