f0505c0284
Remove dead comments from PlayerInventory and PlayerCursorInventory
...
these aren't overrides anymore.
2019-08-05 18:53:46 +01:00
9353f616a2
All BlockInventory descendents now have a Position as holder
...
this allows multiple problems to be solved:
1) Cycle between tile and inventory is now removed.
2) BlockInventory now provides a consistent API for plugins to get the block holding an inventory.
2019-08-05 18:50:29 +01:00
358fea9645
Move Location to Entity namespace
2019-08-05 17:20:48 +01:00
927e05d038
[ci skip] update changelog
2019-08-05 17:15:10 +01:00
53ab860db5
first shot making Block not extend Position
...
this makes some stuff a lot less pretty, but this seems to be the bare minimum necessary to do this task. It can be enhanced later.
2019-08-05 16:44:09 +01:00
cf271dab2b
Entity: fixed undefined variable in getTargetEntity()
2019-08-05 16:19:49 +01:00
1fcec87b98
Block: remove unused function
2019-08-03 17:13:02 +01:00
1cd955c216
Entity: added getEyePos()
2019-08-02 17:29:32 +01:00
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
c1ef5ba8ab
Entity: remove redundant check from spawnToAll()
2019-08-02 17:10:58 +01:00
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
56dc3ce6ee
Human: remove obsolete comment from sendSpawnPacket()
...
the referenced function doesn't exist anymore.
2019-08-02 16:41:30 +01:00
aa5395d6ed
Merge branch 'next-minor'
2019-08-02 16:35:17 +01:00
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
c237ff538c
Merge branch 'stable' into next-minor
2019-08-02 16:32:00 +01:00
2e806d8a6c
[ci skip] changelog update
2019-08-02 16:26:04 +01:00
58e9728710
Removing useless armour descendent classes, move armour slot to ArmorTypeInfo
2019-08-02 16:17:04 +01:00
056c5ed6cd
ItemFactory: break down init() a little
2019-08-01 20:01:29 +01:00
135a2f520c
add some UTF-8 validation
2019-08-01 19:51:31 +01:00
399ef13069
WritableBookPage: add missing EOF newline
2019-08-01 19:39:32 +01:00
7e4236a3ec
add a more flexible hook system to EffectManager
2019-08-01 19:36:13 +01:00
d09e79e682
Player: update properties when assigning game mode, fixes #3005
2019-08-01 19:02:06 +01:00
4818e04540
Player: fix possible comparison bug in setGamemode()
2019-08-01 18:57:47 +01:00
eaf5226f08
[ci skip] update changelog
2019-08-01 17:53:42 +01:00
5c95e25326
Enchantment: use a simple array instead of SplFixedArray
2019-08-01 16:03:08 +01:00
28c9a2c0cd
fixed Protection enchantments being dropped from items, closes #3066
2019-08-01 16:02:05 +01:00
296061d25d
reduce boilerplate around attribute handling
2019-07-31 16:41:09 +01:00
dc33b9e573
VanillaEffects: add some TODOs
2019-07-31 16:37:25 +01:00
b4c55a8c37
fix incorrect power calculation of daylight sensor
2019-07-31 15:44:53 +01:00
bf5519b0cf
fix travis
2019-07-30 19:40:27 +01:00
5499ac620c
Removed pocketmine subdirectory, map PSR-4 style
2019-07-30 19:14:57 +01:00
7a77d3dc30
Merge branch 'stable'
...
# Conflicts:
# resources/vanilla
before-psr4
2019-07-30 19:00:50 +01:00
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
ece28e5d7b
World: avoid triggering light updates when the target block light level/filter haven't changed
2019-07-30 18:01:23 +01:00
3eb1a56985
Merge branch 'stable'
...
# Conflicts:
# resources/vanilla
# src/pocketmine/world/World.php
2019-07-30 15:38:38 +01:00
8f5eb7ef37
Level: fix memory leak on scheduled blockupdate in unloaded chunk
2019-07-30 15:37:24 +01:00
cf1b140d57
fix chunks with entities & tiles not being saved after first autosave
...
this bug was introduced by 211836274f
, 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
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
334d15339f
updated Math dependency
2019-07-29 18:25:32 +01:00
c40074d0bf
Entity: remove unused import
2019-07-29 18:25:05 +01:00
96d8790028
rename Entity->propertyManager -> Entity->networkProperties
2019-07-29 18:24:29 +01:00
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
a4042e5d18
World: fix more implicit chunk loading bugs (getCollidingEntities(), getNearbyEntities(), getNearestEntity())
2019-07-29 18:07:17 +01:00
1111d0d4c7
World: remove dead function getChunkTiles()
2019-07-29 18:00:23 +01:00
17a3ca066e
fix wrong type for Fuel tag on brewing stand
2019-07-29 17:50:02 +01:00
52412e9c21
remove remaining dependencies on Bearing
2019-07-29 17:45:23 +01:00
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
18d05f57b5
Merge branch 'next-minor'
2019-07-29 17:33:08 +01:00
23b00bea5b
Merge branch 'stable' into next-minor
2019-07-29 17:31:06 +01:00
0ea9a08963
3.9.4 is next
2019-07-29 17:27:21 +01:00