5630 Commits

Author SHA1 Message Date
Dylan K. Taylor
b9a87ed147 New fields for InventoryActionPacket
TODO: use this packet
2017-06-05 20:04:20 +01:00
Dylan K. Taylor
742f593758 Added a new constant to ContainerSetContentPacket 2017-06-05 19:15:30 +01:00
Dylan K. Taylor
1e9ff44890 New field for MobEquipmentPacket
If anyone wants to play with the off-hand, the window ID is 0x77 ;)
2017-06-05 19:10:00 +01:00
Dylan K. Taylor
55c4e35407 Added a new PlayerActionPacket constant
thanks @jojoe77777
2017-06-05 18:37:53 +01:00
Dylan K. Taylor
e83ffd5afe Fixed players don't see teleport movement, close #921 2017-06-05 16:47:12 +01:00
Dylan K. Taylor
54453d0b0a Refactored entity IDs in packets for consistency and to clarify on types 2017-06-05 15:41:27 +01:00
Dylan K. Taylor
51d510aa4f Who set these stupid values... fixed #1011 2017-06-05 14:22:45 +01:00
Dylan K. Taylor
4cd97a7c7a Fixed UpdateAttributesPacket not being registered for reading 2017-06-05 14:14:50 +01:00
Dylan K. Taylor
d586ad03ec Update submodules 2017-06-05 10:15:03 +01:00
Dylan K. Taylor
61d354a4ea Block constructor mass-replace to fix #963 and related issues 2017-06-05 10:02:27 +01:00
Dylan K. Taylor
6f126ad239 Fix outdated preprocessor rules for varints, close #1003 2017-06-04 23:27:39 +01:00
Dylan K. Taylor
efea39e0a4 Change buffer unread assertion to debug
I lost count of how many times I changed this now... what happened to the other times?
2017-06-04 19:19:50 +01:00
Dylan K. Taylor
d4bb078566 Fixed some formatting issues in Player 2017-06-04 18:32:45 +01:00
Dylan K. Taylor
6686bd4442 Quick fix for melons and pumpkins, close #965 2017-06-04 16:57:51 +01:00
Dylan K. Taylor
2b02fcfe2c fixed #992 2017-06-04 16:54:35 +01:00
Dylan K. Taylor
138fb88431 More default packet fields 2017-06-04 14:53:31 +01:00
Dylan K. Taylor
26577d9d5b fixed a doc warning 2017-06-04 14:37:06 +01:00
Dylan K. Taylor
2f4943ac90 Fixed some doc issues 2017-06-04 14:27:30 +01:00
Dylan K. Taylor
eda7965f86 Fixed wrong types in ParticleCommand 2017-06-04 14:22:12 +01:00
Dylan K. Taylor
4666560731 Removed some tags that don't exist in vanilla McRegion chunks 2017-06-04 13:04:06 +01:00
Dylan K. Taylor
b01ad01eff Merge branch 'spammy-backtrace' 2017-06-03 22:04:31 +01:00
Dylan K. Taylor
4ba3a3af3d fix FloatingTextParticle 2017-06-03 20:51:48 +01:00
Dylan K. Taylor
5baf59ca56 fix #990 2017-06-03 20:25:24 +01:00
Dylan K. Taylor
902957cb53 more defaults for optional fields, close #985 2017-06-03 17:41:40 +01:00
Dylan K. Taylor
3463bea932 add defaults to MobEffectPacket
these fields may be unspecified if we are only removing effects
2017-06-03 15:21:24 +01:00
Dylan K. Taylor
105917a534 Fixed type issues writing longs and var-longs on 32-bit 2017-06-03 12:04:08 +01:00
Dylan K. Taylor
b83082f224 Fixed missing field in ContainerSetContentPacket, close #980 2017-06-03 11:59:19 +01:00
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