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
c0e0730923
Fixed PE armor screen glitching when equipping armor items
2017-07-30 17:41:44 +01:00
Dylan K. Taylor
24bdf330d5
Merge branch 'moar-typehints'
2017-07-15 09:43:43 +01:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
Dylan K. Taylor
3a214b7ce6
Cleaned up isEncoded mess
2017-07-13 12:21:26 +01:00
Dylan K. Taylor
5283975f20
Move inventory ID constants to their own interface
...
ContainerSetContentPacket will be removed in 1.2, and these aren't specific to ContainerSetContentPacket anyway.
2017-07-12 20:04:36 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
6ea0eb47ec
Fixed PlayerInventory in_array recursion issue, close #1008
...
This is INTENDED BEHAVIOUR for comparing objects?????
2017-06-05 20:51:12 +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
54453d0b0a
Refactored entity IDs in packets for consistency and to clarify on types
2017-06-05 15:41:27 +01:00
Dylan K. Taylor
31e2c1d26c
fix stupid bug in PlayerInventory
2017-06-01 20:19:17 +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
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
9c25ec3afd
Some protocol changes for 1.1.0.0
2017-04-01 19:20:30 +01:00
Dylan K. Taylor
8114ceaf68
Merge branch 'master' into api3/network
2017-03-18 16:29:38 +00:00
Dylan K. Taylor
a8650a241c
Removed @deprecated warning from PlayerInventory->setHotbarSlotIndex()
...
Core uses it, it's just that plugins shouldn't.
2017-03-14 17:37:29 +00:00
Dylan K. Taylor
6c5dbd7359
Merge branch 'master' into api3/network
2017-03-12 12:22:11 +00:00
Dylan K. Taylor
132e04fdbb
Hotbar/inventory bugfixes ( #399 )
...
- Fixed most issues with item equipment in creative
- Added save and restore of currently-held item
- Reset hotbar on death, added API method PlayerInventory->resetHotbar()
- Creative players now have more leeway to get items, alleviates issues with item equipment in desktop GUI
- Fixed creative players wearing armour
- Found unknown field in ContainerSetSlotPacket
- Removed outdated/redundant constants
- Use a case statement in ContainerSetSlotPacket handler, added handling for 0x7a hotbar slot link update
2017-03-09 20:31:55 +00:00
Dylan K. Taylor
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00
Dylan K. Taylor
1ee689e759
Fixed mess of entity ID 0 for players, fixed emeralds
2017-03-02 11:04:00 +00:00
Dylan K. Taylor
ab943a0462
Fix crashes
2017-01-16 14:50:32 +00:00
Blabla
02ddcef24e
Fix calls to undefined method Human->getServer() ( #234 )
...
* Fixes sendHeldItem to stop crashes when executing.
* Fix server calling for food consuming.
2017-01-07 13:01:26 +00:00
Dylan K. Taylor
0bd7ea211d
Refactored Server::broadcastPacket() to be non-static
...
Why the hell was this static at all? Seriously Shoghi?
2017-01-03 22:24:40 +00:00
Dylan K. Taylor
300a3d5ccd
Fix default hotbar mapping for W10
2016-12-20 21:19:25 +00:00
Dylan K. Taylor
92784054cd
Creative inventory fixes
2016-10-05 10:07:00 +01:00
SOF3
e913b16804
Fixed some lines indented with 4 spaces rather than tabs
2016-10-03 00:58:34 +08:00
SOF3
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
Dylan K. Taylor
e00176b677
Closes #4181 @ PM
...
https://github.com/PocketMine/PocketMine-MP/issues/4181
2016-09-28 13:59:51 +01:00
Dylan K. Taylor
f14a8e46be
Inventory: Fix creative/spectator inventory sending
2016-09-28 13:59:46 +01:00
Dylan K. Taylor
765bd5ced7
Inventory: Fix hotbar spaz
2016-09-06 11:23:49 +01:00
Shoghi Cervantes
24f8de2cc3
Bad hack, TODO REMOVE, workarounds client bug by sending inventory contents specifically for creative players <-- this commit is full of sadness
2015-09-14 20:25:57 +02:00
Shoghi Cervantes
31ef7721b1
Removed network channels, bumped protocol
2015-08-12 14:59:48 +02:00
Shoghi Cervantes
1b812d373c
Updated protocol packet ids
2015-08-03 10:53:23 +02:00
Shoghi Cervantes
5621ab0c49
Updated some packets for 0.12, UUIDs, other stuff!
2015-08-02 01:22:36 +02:00
Shoghi Cervantes
6063738e69
Fixed setting inventory index after new entity id 0 for players
2015-06-19 17:14:09 +02:00
Shoghi Cervantes
f7ec1de0fd
Players now have entity id 0
2015-06-19 14:40:05 +02:00
Shoghi Cervantes
0e9bff6f4e
Fixed armor not being sent correctly to current player, fixes #3073
2015-05-28 14:28:23 +02:00
Shoghi Cervantes
0c6d8b9815
Fixed loader counter on Level, closes #1147
2015-05-19 14:49:18 +02:00
Shoghi Cervantes
923be2fffc
Improved slot selection on creative mode, closes #2960
2015-04-30 12:53:03 +02:00
Shoghi Cervantes
8caf04ade5
build 8, allow setting selected hotbar slot, auto_jump setting
2015-04-28 14:20:35 +02:00
Shoghi Cervantes
7b699d9afd
Improved fall damage while on jump boost, new protocol update, build 7, allow for live inventory resizing
2015-04-24 16:43:59 +02:00
Shoghi Cervantes
5b10ccf431
0.11.0 build 5, removed chat format workaround, improved gamemode switch, send allowed creative blocks (TBI as API)
2015-04-17 17:10:25 +02:00
Shoghi Cervantes
0b176b3fe0
Implemented Channeled packet sending
2015-04-14 18:24:40 +02:00
Shoghi Cervantes
363e0e3b13
Revert slot change harder
2015-04-11 18:50:27 +02:00
Shoghi Cervantes
0a85ad0d1f
Improved trees, improved inventory transactions, improved snowball/bow usage
2015-03-28 16:59:15 +01:00
Shoghi Cervantes
add380c7ed
A few fixes!
2015-03-21 00:45:29 +01:00
Shoghi Cervantes
d66a2d7105
Merge branch 'master' into mcpe-0.11
2015-03-19 09:18:39 +01:00
Shoghi Cervantes
d34499e67b
Revert "Implemented proportional armor modifier, applied armor in other damage types and consume armor when player is damaged"
2015-03-18 17:26:06 +01:00
Shoghi Cervantes
1b25cd6ffa
Merge branch 'master' into mcpe-0.11
2015-03-17 19:12:03 +01:00
PEMapModder
8aa8ae5094
Implemented proportional armor modifier, applied armor in other damage types and consume armor when player is damaged
2015-03-17 20:04:59 +08:00