5703 Commits

Author SHA1 Message Date
Dylan K. Taylor
840a3883b1 Fixed type of empty ListTags and removed some undefined behaviour (#974)
* Fixed fallback type of empty ListTags, close #972

* Less undefined behaviour
2017-06-03 11:18:00 +01:00
Dylan K. Taylor
ad4659365a Use default amplifier 0 instead of implicit null
(how did nobody ever notice this?!)
2017-06-03 11:06:22 +01:00
Dylan K. Taylor
8d858e3e6d Removed __toString() from backtrace, fixes ludicrous amounts of spam when something crashes involving EncapsulatedPackets or NBT 2017-06-03 10:36:04 +01:00
Dylan K. Taylor
22ba017965 Binary strict types (#969)
* Some Binary cleanup, type-hints and strict types
yes, I know this is very crashy... that's good, because it highlights unexpected behaviour

* added some default values
2017-06-03 09:39:45 +01:00
Dylan K. Taylor
8bb0e8d398 Fixed a mistake in DropItemPacket encode 2017-06-02 17:52:10 +01:00
Dylan K. Taylor
087a994393 Workaround for some plugins crashing clients during PlayerLoginEvent 2017-06-02 17:06:01 +01:00
Dylan K. Taylor
e4e4ef5f2a Fixed preprocessor issues with signed bytes and floats, close #967 2017-06-02 12:50:48 +01:00
Dylan K. Taylor
3ac51e1095 TAG_Byte should always be signed (#962) 2017-06-02 11:30:44 +01:00
Dylan K. Taylor
2db6ea6b18 Updated creative inventory data
some items will show wrong damage values due to a bug in meta handling on master
2017-06-02 11:00:36 +01:00
Dylan K. Taylor
b6ae92e1a7 Updated crafting data and item serialization for 1.1, fixed #963 2017-06-02 10:36:14 +01:00
Dylan K. Taylor
31e2c1d26c fix stupid bug in PlayerInventory 2017-06-01 20:19:17 +01:00
Dylan K. Taylor
846e3b6f1e New fields for StartGamePacket 2017-06-01 19:48:06 +01:00
Dylan K. Taylor
0e525ac1c3 Autogenerated data for 1.1.0.55 2017-06-01 19:24:17 +01:00
Dylan K. Taylor
8382970d56 Merge branch 'master' into mcpe-1.1 2017-05-30 16:09:46 +01:00
Dylan K. Taylor
db3cd1829c Made Binary::readVarInt/VarLong methods less useless 2017-05-30 14:19:34 +01:00
Dylan K. Taylor
caced595d2 Fixed server crash on startup on 32-bit with memory limit set >= 4096MB 2017-05-30 14:15:40 +01:00
Muqsit Rayyan
86f3b257a7 Remove unneeded foreach loop in Human::getDrops() (#941)
* Remove unneeded foreach loop in Human::getDrops()

* Use array_values() for backwards compatibility.
2017-05-30 13:27:47 +01:00
Dylan K. Taylor
1ed5de1d3b Merge branch 'nbt-cleanup' 2017-05-30 12:26:17 +01:00
Dylan K. Taylor
63358a8065 Merge branch 'master' into mcpe-1.1 2017-05-30 09:45:20 +01:00
Dylan K. Taylor
f6ff03fc31 Added support for MCPACK resource packs 2017-05-30 09:43:28 +01:00
Dylan K. Taylor
0ad16c1919 Added PlayerDataSaveEvent, resolved #487 (#920)
* Added PlayerDataSaveEvent, resolved #487

* Added getPlayer() to PlayerDataSaveEvent
may return an IPlayer

* Fixed quit messages
This TranslationContainer vs. string mess... >_<
2017-05-29 18:50:45 +01:00
Dylan K. Taylor
38b8f14758 Fixed wrong reported slot in PlayerItemHeldEvent, fixed assert failures due to negative slot numbers in the hotbar
fixes some issues reported in #525
2017-05-29 16:33:48 +01:00
Dylan K. Taylor
8779259734 Stop spawning entities to players twice
This will be done when the chunk is sent to the player anyway.
2017-05-29 15:57:05 +01:00
Dylan K. Taylor
2f306c3a38 Fix crash when new players join due to attempting to send negative inventory slot 2017-05-29 15:30:11 +01:00
Dylan K. Taylor
57379b93ce Fixed a mistake in metadata decoder 2017-05-27 14:18:40 +01:00
Dylan K. Taylor
954271b90f Found unknown fields for SetSpawnPositionPacket 2017-05-27 13:13:19 +01:00
Dylan K. Taylor
645d744e05 Added a check for Phar extension 2017-05-26 21:39:43 +01:00
Dylan K. Taylor
4c764072b2 Check the entity is actually inside a block before trying to shove it out, fix #271 2017-05-26 17:15:25 +01:00
Dylan K. Taylor
3446f68c74 Workaround for PowerShell escape code issue after using git in the same window
I don't have any idea why the bug happens. Starting the server in a child PowerShell process resolves the issue.
2017-05-26 13:46:34 +01:00
Muqsit Rayyan
ca6826898b Added API method Server->broadcastTitle() (#932) 2017-05-25 14:05:41 +01:00
Dylan K. Taylor
76ab3d4288 This worked fine locally... 2017-05-24 14:50:33 +01:00
Dylan K. Taylor
b6c1139b27 Fixed lint scan ignoring PHP_BINARY argument 2017-05-24 14:25:48 +01:00
Dylan K. Taylor
af06d78725 Merge changes from master 2017-05-24 09:54:11 +01:00
Dylan K. Taylor
8cc1003956 Fixed FloatingTextParticle 2017-05-24 07:37:11 +01:00
Dylan K. Taylor
92281da514 Fix wrong comment in FallingSand
This is actually a bug in MCPE
2017-05-23 20:02:23 +01:00
Dylan K. Taylor
5c8297f4a1 Fixed some logic issues with falling blocks, fix #897 #899 #935 2017-05-23 19:48:49 +01:00
Dylan K. Taylor
23ed3334c2 added creative mode check for block picking 2017-05-23 16:26:29 +01:00
Dylan K. Taylor
674394c4f5 Fixed undefined offset when retrieving something from the thread store that doesn't exist (#919) 2017-05-22 13:53:57 +08:00
Dylan K. Taylor
4e381ab033 Added DATA_COLOR alias 2017-05-21 14:40:49 +01:00
Dylan K. Taylor
c5527db424 Be more clear about ProtocolInfo being automatically generated and add notice to not bother submitting PRs for changing version numbers (#931) 2017-05-21 13:58:01 +01:00
Dylan K. Taylor
aecff7c782 Revert "Improved handling of incompatible protocols"
This reverts commit 576702ffa97e16b1ca4cdee7d94460c661347ca7.

This crippled plugins which use data fromm LoginPacket :S
2017-05-21 13:27:27 +01:00
Dylan K. Taylor
0207b22110 Fixed Mojang world converters barfing on PocketMine-MP generated McRegion worlds
blame @shoghicp
2017-05-21 12:44:42 +01:00
Dylan K. Taylor
a77c1ce13c remove leftover 2017-05-20 12:24:10 +01:00
Dylan K. Taylor
afd90adb1c Refactored JSON-parsing NBT utilities into their own class 2017-05-20 12:24:10 +01:00
Dylan K. Taylor
2e480b5ea1 Fixed broken logic for recursive counts of ListTag 2017-05-20 12:24:10 +01:00
Dylan K. Taylor
d4cc7d13cd Fixed setValue() being useless for CompoundTags and ListTags 2017-05-20 12:24:10 +01:00
Dylan K. Taylor
f6c0ba9846 Cleaned up some duplicated code in NBT parser 2017-05-20 12:24:01 +01:00
Dylan K. Taylor
f3c38700f5 Removed options for disabling assertion exceptions 2017-05-20 12:24:00 +01:00
Dylan K. Taylor
77b1b565a4 Stop silently blocking people 2017-05-19 12:11:40 +01:00
Dylan K. Taylor
36c95660e6 Fixed some logic issues with async compression 2017-05-19 11:30:23 +01:00