Dylan K. Taylor
be7b057fa5
Improved metadata sending and made it less spammy
...
Add changed properties to a list to send in a group on tick in a single packet
2017-06-17 20:00:45 +01:00
Dylan K. Taylor
e3b3f60c66
Fixed item stack count and effect amplifier overflows, close #1072
2017-06-17 12:22:38 +01:00
Dylan K. Taylor
313fdb9e87
Added INT32_MIN and INT32_MAX constants and an exception throw for out-of-range effect amplifiers
2017-06-14 19:38:39 +01:00
Dylan K. Taylor
4341fb8347
AddEntityPacket's attributes encoding is still non-standard -_-
...
I thought they fixed this...
2017-06-11 18:09:58 +01:00
Dylan K. Taylor
cd66f58526
Restrict XpSeed to the bounds of an int32, close #1040
2017-06-09 16:05:28 +01:00
Dylan K. Taylor
eac756470a
Fixed trying to save health as a ShortTag, close #1039
2017-06-09 09:11:02 +01:00
Dylan K. Taylor
890f72dbf2
Type-hinted NBT tag constructors, made getValue() and setValue() more strict, fix dozens of assorted related bugs
2017-06-08 19:17:52 +01:00
Dylan K. Taylor
e18a3ac933
Fixed UUID-related issues
2017-06-07 13:11:03 +01:00
Dylan K. Taylor
cf07af8b55
Fix some strict type violations reported by PhpStorm (strict types <3)
2017-06-07 12:54:12 +01:00
Dylan K. Taylor
51091fe87b
Fix player data saving
2017-06-07 12:54:12 +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
b7b7bcee4f
Fixed some weak comparisons
2017-06-05 21:07:35 +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
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
8382970d56
Merge branch 'master' into mcpe-1.1
2017-05-30 16:09:46 +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
63358a8065
Merge branch 'master' into mcpe-1.1
2017-05-30 09:45:20 +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
af06d78725
Merge changes from master
2017-05-24 09:54: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
4e381ab033
Added DATA_COLOR alias
2017-05-21 14:40:49 +01:00
Dylan K. Taylor
0a4d62b405
Added encode and decode methods for more packets
2017-05-15 15:56:59 +01:00
Dylan K. Taylor
713f3facf9
Fixed stupid bug with Arrows
2017-05-09 21:09:34 +01:00
Dylan K. Taylor
046f17c9e2
Merge branch 'master' into mcpe-1.1
2017-05-08 17:43:09 +01:00
Dylan K. Taylor
50f7d04044
Import cleanup
2017-05-07 16:55:10 +01:00
Dylan K. Taylor
4ccd955647
Fixed possible memory leak with projectiles, use owner/target metadata
2017-05-07 16:50:32 +01:00
Dylan K. Taylor
adbb53929e
Fixed scaling issues with height and width on the client, close #819
...
Seems these metadata fields are actually the _base_ height/width. Setting the scale will cause the client to calculate bounding boxes with the scale already taken into account. This caused the scale to be applied twice on the client.
2017-05-05 16:51:15 +01:00
smarticles101
8a7259aa73
Merge #826 : use getEffectLevel() instead of getAmplifier() + 1
...
Closes #412
2017-05-05 19:01:04 +08:00
Dylan K. Taylor
c4f461f65d
Fixed fall damage in 1 block of water, close #470
2017-05-05 10:41:44 +01:00
Dylan K. Taylor
49eb0eb050
Fixed falling sand glitching on landing, minor logic improvements
2017-05-04 17:48:39 +01:00
Dylan K. Taylor
13fd8b681e
Added some sounds, fixed DestroyBlockParticle wrong particles for blocks with different meta values
2017-05-04 16:50:13 +01:00
Dylan K. Taylor
c537cea87e
Resolved issues with incorrect item and TNT position offsets, close #848
2017-05-04 13:52:10 +01:00
Dylan K. Taylor
4d897b824b
Added more metadata properties, fixed some wrong values, fixed too many oxygen bubbles
2017-04-26 19:48:31 +01:00
Dylan K. Taylor
caf4937222
Fixed arrow flight and spawning bugs, fixed critical trail, close #420
2017-04-26 18:55:48 +01:00
Dylan K. Taylor
ffcada88f3
New data flags
2017-04-25 16:27:29 +01:00
Dylan K. Taylor
7a2ed232cc
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-24 13:56:19 +01:00
Dylan K. Taylor
d682fdfdf0
Food and exhaustion should not apply in creative, close #860
2017-04-24 13:31:05 +01:00
Dylan K. Taylor
1be4bd67e4
Fixed assert failure when player join in un-generated areas of the world
2017-04-24 10:32:50 +01:00
Dylan K. Taylor
559504225a
Throw an exception before calling base entity constructor if skin is not set or invalid, close #835 ( #855 )
2017-04-24 09:50:55 +01:00
Dylan K. Taylor
179210aa27
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-21 22:50:14 +01:00
Dylan K. Taylor
6ece57e23e
Merge changes from master
2017-04-21 22:48:18 +01:00
Dylan K. Taylor
2204942338
Fixed the half-done hunger implementation, fixed lots of bugs related to hunger
...
- Fixed starvation doesn't deal any damage at all (Human->getFood() returns a float, not an int, === 0 won't work so great)
- Added exhaustion for sprinting, walking, jumping and sprint-jumping as per MCPE (these use MCPE values, and yes MCPE does walking exhaustion!)
- Fixed attributes don't get reset after player death
- Added food and hunger regeneration in peaceful difficulty
- Added API methods Living->jump() (motion isn't updated yet, so this won't actually do much if plugins try to use it) and Living->getJumpVelocity()
TODO: implement exhaustion for swimming
2017-04-21 19:48:25 +01:00
Dylan K. Taylor
e7406ba096
Fixed squid health attribute errors
2017-04-21 14:42:19 +01:00
Dylan K. Taylor
3f1790bcb8
Found some missing data flags and proper fix for ladders
2017-04-20 19:42:00 +01:00
Dylan K. Taylor
a0ba8f0098
Added some new metadata, fixed others, fixed TNT (again)
2017-04-20 17:52:24 +01:00
Dylan K. Taylor
feb538900b
Added a couple of entity metadata properties
2017-04-20 16:05:46 +01:00
Dylan K. Taylor
6c5ca9b256
Protocol updates for 1.1.0.5
2017-04-20 13:54:55 +01:00
Dylan K. Taylor
5e6a0e7ba0
More metadata changes, fixed TNT
2017-04-16 22:03:52 +01:00