10315 Commits

Author SHA1 Message Date
Dylan K. Taylor
774e6fe8a3 Make chemistry textures always enabled 2019-08-10 17:38:00 +01:00
Dylan K. Taylor
fae6289eb8 protocol: move resource-pack related types to their own subnamespace 2019-08-08 19:58:24 +01:00
Dylan K. Taylor
d87b6f9ff7 Remove resource pack packets dependency on ResourcePack, now supports decoding 2019-08-08 19:36:54 +01:00
Dylan K. Taylor
a52e4f0392 AsyncPool: Return whether there are tasks left to be collected from collectTasks()
this allows a while($pool->collectTasks()); style code.
2019-08-08 18:48:58 +01:00
Dylan K. Taylor
bce126b6d0 fix BB of daylight sensor 2019-08-07 19:51:52 +01:00
Dylan T
c533f6a0bd
Implemented partial chunk saving on LevelDB (#3078) 2019-08-07 17:39:36 +01:00
Dylan K. Taylor
9598af7683 commands: remove some nonsensical isValid() checks
a player who doesn't have a valid world has no business sending commands anyway.
2019-08-06 15:42:17 +01:00
Dylan K. Taylor
dec6f73f2f Remove unnecessary BannerPattern copying on block clone 2019-08-06 10:18:02 +01:00
Dylan K. Taylor
9671b4d5cb fix improper cloning of some blocks, closes #3079 2019-08-06 10:07:16 +01:00
Dylan K. Taylor
4e5b296c8c Tiles now encapsulate positions instead of extending them 2019-08-05 19:33:34 +01:00
Dylan K. Taylor
d355d5b5b5 Remove hack to break cyclic dependency on double chests
Since these now reference positions instead of tiles, the cyclic dependency is removed.
2019-08-05 19:01:21 +01:00
Dylan K. Taylor
f0505c0284 Remove dead comments from PlayerInventory and PlayerCursorInventory
these aren't overrides anymore.
2019-08-05 18:53:46 +01:00
Dylan K. Taylor
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
Dylan K. Taylor
358fea9645 Move Location to Entity namespace 2019-08-05 17:20:48 +01:00
Dylan K. Taylor
927e05d038 [ci skip] update changelog 2019-08-05 17:15:10 +01:00
Dylan K. Taylor
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
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