Dylan K. Taylor
cf271dab2b
Entity: fixed undefined variable in getTargetEntity()
2019-08-05 16:19:49 +01:00
Dylan K. Taylor
1fcec87b98
Block: remove unused function
2019-08-03 17:13:02 +01:00
Dylan K. Taylor
1cd955c216
Entity: added getEyePos()
2019-08-02 17:29:32 +01:00
Dylan K. Taylor
e03f918806
AttributeMap: drop ArrayAccess interface
...
this makes no sense because it isn't type safe and isn't used anywhere. It's just extra maintenance cost for no good reason.
2019-08-02 17:19:14 +01:00
Dylan K. Taylor
c1ef5ba8ab
Entity: remove redundant check from spawnToAll()
2019-08-02 17:10:58 +01:00
Dylan K. Taylor
cc4b2959a7
Player: ditch deprecated dataPacket()
...
it doesn't make sense to deprecate this on a major version, particularly given all the other changes that plugin devs will have to accommodate.
2019-08-02 16:43:45 +01:00
Dylan K. Taylor
56dc3ce6ee
Human: remove obsolete comment from sendSpawnPacket()
...
the referenced function doesn't exist anymore.
2019-08-02 16:41:30 +01:00
Dylan K. Taylor
aa5395d6ed
Merge branch 'next-minor'
2019-08-02 16:35:17 +01:00
Dylan K. Taylor
eeddaced9f
PluginManager: Remove useless deprecation warning message
...
this message just confuses end users and is of little use to a developer. It doesn't make any sense to make a special case for events when we have lots of other deprecated things to think about anyway which won't be shown warnings for.
2019-08-02 16:34:00 +01:00
Dylan K. Taylor
c237ff538c
Merge branch 'stable' into next-minor
2019-08-02 16:32:00 +01:00
Dylan K. Taylor
2e806d8a6c
[ci skip] changelog update
2019-08-02 16:26:04 +01:00
Dylan K. Taylor
58e9728710
Removing useless armour descendent classes, move armour slot to ArmorTypeInfo
2019-08-02 16:17:04 +01:00
Dylan K. Taylor
056c5ed6cd
ItemFactory: break down init() a little
2019-08-01 20:01:29 +01:00
Dylan K. Taylor
135a2f520c
add some UTF-8 validation
2019-08-01 19:51:31 +01:00
Dylan K. Taylor
399ef13069
WritableBookPage: add missing EOF newline
2019-08-01 19:39:32 +01:00
Dylan K. Taylor
7e4236a3ec
add a more flexible hook system to EffectManager
2019-08-01 19:36:13 +01:00
Dylan K. Taylor
d09e79e682
Player: update properties when assigning game mode, fixes #3005
2019-08-01 19:02:06 +01:00
Dylan K. Taylor
4818e04540
Player: fix possible comparison bug in setGamemode()
2019-08-01 18:57:47 +01:00
Dylan K. Taylor
eaf5226f08
[ci skip] update changelog
2019-08-01 17:53:42 +01:00
Dylan K. Taylor
5c95e25326
Enchantment: use a simple array instead of SplFixedArray
2019-08-01 16:03:08 +01:00
Dylan K. Taylor
28c9a2c0cd
fixed Protection enchantments being dropped from items, closes #3066
2019-08-01 16:02:05 +01:00
Dylan K. Taylor
296061d25d
reduce boilerplate around attribute handling
2019-07-31 16:41:09 +01:00
Dylan K. Taylor
dc33b9e573
VanillaEffects: add some TODOs
2019-07-31 16:37:25 +01:00
Dylan K. Taylor
b4c55a8c37
fix incorrect power calculation of daylight sensor
2019-07-31 15:44:53 +01:00
Dylan K. Taylor
bf5519b0cf
fix travis
2019-07-30 19:40:27 +01:00
Dylan K. Taylor
5499ac620c
Removed pocketmine subdirectory, map PSR-4 style
2019-07-30 19:14:57 +01:00
Dylan K. Taylor
7a77d3dc30
Merge branch 'stable'
...
# Conflicts:
# resources/vanilla
before-psr4
2019-07-30 19:00:50 +01:00
Dylan K. Taylor
6b4d8b91c6
fix crashdump plugin detection
...
some things which were copy pasting PM classes into plugins were causing incorrect detection here. The path cleaning guarantees that all plugin paths will start with "plugins/", so we can use that to check instead.
2019-07-30 18:58:31 +01:00
Dylan K. Taylor
ece28e5d7b
World: avoid triggering light updates when the target block light level/filter haven't changed
2019-07-30 18:01:23 +01:00
Dylan K. Taylor
3eb1a56985
Merge branch 'stable'
...
# Conflicts:
# resources/vanilla
# src/pocketmine/world/World.php
2019-07-30 15:38:38 +01:00
Dylan K. Taylor
8f5eb7ef37
Level: fix memory leak on scheduled blockupdate in unloaded chunk
2019-07-30 15:37:24 +01:00
Dylan K. Taylor
cf1b140d57
fix chunks with entities & tiles not being saved after first autosave
...
this bug was introduced by 211836274f7008b83cab6f5ec40be539bff159d7, which did not take into consideration that the dirty flag is cleared after the first time the chunk is saved, meaning that later entity and tile changes wouldn't be saved.
I considered this fix more elegant than reverting the bug commit.
2019-07-29 19:38:47 +01:00
Dylan K. Taylor
2ecdea2cc6
LevelDB: increase default block size to 64KB
...
this might be a little too big, but it's definitely better than the leveldb default 4KB, since most of our data is bigger than 4KB.
2019-07-29 18:54:27 +01:00
Dylan K. Taylor
334d15339f
updated Math dependency
2019-07-29 18:25:32 +01:00
Dylan K. Taylor
c40074d0bf
Entity: remove unused import
2019-07-29 18:25:05 +01:00
Dylan K. Taylor
96d8790028
rename Entity->propertyManager -> Entity->networkProperties
2019-07-29 18:24:29 +01:00
Dylan K. Taylor
452cfe2f59
World: drop getChunkEntities(), use getChunk()->getEntities()
...
everywhere this function is used, it should be assumed/expected that the chunk in question is already present and loaded.
2019-07-29 18:20:33 +01:00
Dylan K. Taylor
a4042e5d18
World: fix more implicit chunk loading bugs (getCollidingEntities(), getNearbyEntities(), getNearestEntity())
2019-07-29 18:07:17 +01:00
Dylan K. Taylor
1111d0d4c7
World: remove dead function getChunkTiles()
2019-07-29 18:00:23 +01:00
Dylan K. Taylor
17a3ca066e
fix wrong type for Fuel tag on brewing stand
2019-07-29 17:50:02 +01:00
Dylan K. Taylor
52412e9c21
remove remaining dependencies on Bearing
2019-07-29 17:45:23 +01:00
Dylan K. Taylor
a621bf66ff
Remove implied dependence on Facing/Bearing constant values
...
this introduces mapping tables for redundancy for when those things change or disappear.
2019-07-29 17:43:36 +01:00
Dylan K. Taylor
18d05f57b5
Merge branch 'next-minor'
2019-07-29 17:33:08 +01:00
Dylan K. Taylor
23b00bea5b
Merge branch 'stable' into next-minor
2019-07-29 17:31:06 +01:00
Dylan K. Taylor
0ea9a08963
3.9.4 is next
2019-07-29 17:27:21 +01:00
Dylan K. Taylor
18a1bfe4dd
Release 3.9.3
3.9.3
2019-07-29 17:27:21 +01:00
Dylan K. Taylor
2d3562c687
World: fixed scheduled updates causing chunk loading
...
this probably needs to be backported.
2019-07-29 17:21:54 +01:00
Dylan K. Taylor
f3f8cd98de
World: fixed scheduled updates causing chunk loading
...
this probably needs to be backported.
2019-07-29 17:17:05 +01:00
Dylan K. Taylor
b98dad6f63
Fixed WritableBook PC format deserialization
2019-07-29 16:37:40 +01:00
Dylan K. Taylor
e06ab0869a
mostly rewrite internal entity metadata handling
...
- Only sync the metadata set when needed for sending
- Don't use metadata set for storing data, add properties instead
- Use objects inside metadata sets instead of arrays
2019-07-28 19:40:47 +01:00