Irish
66fbfdd47b
Fixed hunger not saving, resolves 1 of #435 ( #439 )
2017-03-18 21:58:02 +00:00
Dylan K. Taylor
92193fd27b
Use entity IDs in EntityDamageBy*EntityEvents, fixed memory leaks related to PvP/PvE/PvM ( #418 )
2017-03-13 10:30:31 +00:00
Dylan K. Taylor
4f27bce5b3
Destroy NBT references when closing entities, alleviates memory issues on leaked Player objects
...
This does NOT FIX THE ACTUAL ISSUES, only eliminates some of the symptoms.
2017-03-12 10:53:27 +00:00
Dylan K. Taylor
c925845173
Added forceSend for attribute value setting, fixed slowness >= 7 removed client-side when sprinting
2017-03-09 21:33:55 +00:00
Dylan K. Taylor
7fb3c7343f
Fit attribute value to range when applying slowness, close #410
...
According to http://minecraft.gamepedia.com/Status_effect#Slowness , anything higher than slowness 7 will cause the player to be unable to move. Therefore this value should be clamped to a minimum of 0, not crash.
2017-03-09 21:01:10 +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
f87b745771
New entity metadata and found some UpdateTradePacket fields
2017-03-09 17:55:26 +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
c21197ef17
Removed entanglement between chunks and providers. WARNING: BREAKING API CHANGES.
...
- All entity and tile constructors now require a \pocketmine\level\Level instead of a \pocketmine\level\format\Chunk.
- Chunk->getProvider() and Chunk->setProvider() have been removed.
- Chunk::__construct() has had the $provider parameter removed.
- Chunk->unload() has had the unused $save parameter removed.
- ChunkEvents now take a Level parameter instead of going through the Chunk
API bump to 3.0.0-ALPHA4
2017-02-21 17:08:45 +00:00
Dylan K. Taylor
abffe1297d
Fixed crashes closing entities with unloaded levels
2017-02-15 17:51:41 +00:00
Sandertv
6dc6e32656
Added some very useless functions for easier size changing of entities. ( #348 )
2017-02-11 21:24:38 +00:00
Dylan K. Taylor
740a8ad436
Lock player position for delayed teleport, and add related assertions
2017-01-26 11:13:35 +00:00
Dylan K. Taylor
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
Dylan K. Taylor
92b85e0f15
Fix players regenerating health from food while dead, fixes issue 2 in #23
2017-01-09 14:10:05 +00:00
Dylan K. Taylor
86dc8c48b9
Fix player burn time in creative
2017-01-06 20:01:21 +00:00
Dylan K. Taylor
598e7aac8f
More PhpStorm inspections, import cleanup
2017-01-04 14:55:11 +00:00
Dylan K. Taylor
096836faaa
Moved Entity initialization into Entity class
2017-01-03 22:24:41 +00:00
Dylan K. Taylor
b68df2da5c
Remove unused files in preparation for rewrite
2017-01-03 22:24:41 +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
55791e0819
Fix doc formatting from FullChunk -> Chunk mass-replace
2017-01-03 22:24:28 +00:00
Dylan K. Taylor
69369c8998
Fix dropped items not saving due to missing CompoundTag name, close #223
...
The NBT library is really badly designed.
2017-01-03 22:24:27 +00:00
Dylan K. Taylor
10c8632417
Fixed effect amplifier overflow crash, close #147 ( #191 )
2016-12-27 21:30:54 +00:00
Dylan K. Taylor
942b35ee4c
Some metadata flags
2016-12-26 16:59:52 +00:00
Dylan K. Taylor
2930cf80b4
Merge branch 'master' into mcpe-1.0
2016-12-16 10:29:58 +00:00
SOFe
175dd0efa6
PhpStorm inspections
...
Fixed some minor bugs and dropped some obsolete code
pocketmine\level\generator namespace is ignored in this commit
2016-12-14 21:49:35 +00:00
Dylan K. Taylor
5e6d452678
Fix TNT flashing, add explosion particles and add DATA_FUSE_LENGTH entity data constant
2016-12-09 17:20:07 +00:00
Dylan K. Taylor
adabd7ef65
Merge branch 'master' into mcpe-1.0
2016-12-06 12:04:42 +00:00
JackNoordhuis
5d16ecc003
Entity Effect Events ( #141 )
...
Add EntityEffectEvent class that the EntityEffectAddEvent and
EntityEffectRemoveEvent classes extend. Add event calls to Effect class.
2016-12-06 11:59:49 +00:00
Dylan K. Taylor
4d121f7d84
Fix some entity metadata
2016-12-03 22:12:52 +00:00
Dylan K. Taylor
4c49db6036
New generic in-memory chunk format, fixed 0.17.0.1 chunk loading
...
Terrible performance, needs profiling. TODO: fix this.
2016-11-27 21:57:59 +00:00
Dylan K. Taylor
e51a2725de
Remove circular dependency between Item and NBT modules ( #121 )
2016-11-25 10:17:50 +00:00
Dylan K. Taylor
16d07e1f3d
Remove redundant return value for setImmobile()
2016-10-30 17:07:06 +00:00
Dylan K. Taylor
16d72c7f86
Remove redundant type-hint causing crashes
2016-10-30 17:03:29 +00:00
Dylan K. Taylor
ce5fa0e836
Fix FallingSand metadata
2016-10-30 15:54:02 +00:00
Dylan K. Taylor
ae1501884b
More metadata and some cleanup
2016-10-27 10:55:06 +01:00
Dylan K. Taylor
bfc77a772a
New entity data flags
...
@Intyre, you are beyond awesome
2016-10-27 10:55:05 +01:00
Dylan K. Taylor
6bcb3aeb26
Add new values for potion colour and ambient. TODO: bubble transparency.
2016-10-27 10:55:05 +01:00
Dylan K. Taylor
0f261b7baa
Fixed player flags (now can sleep!)
2016-10-27 10:55:05 +01:00
Dylan K. Taylor
ce72f634b0
Update some old code
2016-10-27 10:55:04 +01:00
Dylan K. Taylor
2ffbb452bb
Fix a bunch of metadata bugs, fixed air ticking and added some new API methods
2016-10-27 10:55:04 +01:00
Dylan K. Taylor
468b3e8d44
Flags now work on mobs, but not on players
...
This commit no doubt breaks something, somewhere
2016-10-27 10:55:04 +01:00
Dylan K. Taylor
869721a8ee
Add more unknowns
2016-10-27 10:55:04 +01:00
Dylan K. Taylor
787f6594b2
More new data properties
2016-10-27 10:55:04 +01:00
Dylan K. Taylor
867ec6b509
Fix leads, crashes
2016-10-27 10:55:03 +01:00
Dylan K. Taylor
b6e1a21566
Add new metadata type vector3f and correct metadata encoding. Result = client crash. TODO: new data values and flags.
2016-10-27 10:55:03 +01:00
Dylan K. Taylor
8f9574dec5
Fixed FOV and attributes
2016-10-27 10:55:01 +01:00
SOFe
58ff381557
PhpStorm automated formatting ( #11 )
...
* PhpStorm reformatting
* Tuned PhpStorm reformatting
* Improved ItemIds and BlockIds formatting
* Tuned more PhpStorm reformatting
* Improved string concatenation
2016-10-03 19:05:48 +08:00
SOF3
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
Intyre
6fb41c5c7f
UpdateBlockPacket fixed and changed skinName to skinId
2016-06-22 01:09:48 +02:00
Intyre
df8e1e8702
Spawn unleashed, movement fixed and some Player DataProperty cleanup
2016-06-22 00:08:52 +02:00