10838 Commits

Author SHA1 Message Date
Dylan K. Taylor
73b2669712 remove World->isFullBlock(), add Block->isFullCube(), clean up some BB mess 2019-08-15 16:22:54 +01:00
Dylan K. Taylor
e29ac514d7 Block->getBoundingBox() and Block->getCollisionBoxes() are now final
Force usage of Block->recalculateBoundingBox() and Block->recalculateCollisionBoxes()
2019-08-15 16:16:08 +01:00
Dylan K. Taylor
6dd1cdc413 sync php submodule version 2019-08-14 18:22:08 +01:00
Dylan K. Taylor
b912ae78bc Merge branch 'stable' of https://github.com/pmmp/PocketMine-MP into stable 2019-08-14 18:21:24 +01:00
Dylan K. Taylor
200bcb485e Merge branch 'stable' 2019-08-14 18:20:55 +01:00
Dylan K. Taylor
677d43028a add php-build-scripts as a submodule 2019-08-14 18:08:26 +01:00
Dylan K. Taylor
d04793145c Remove usages of AxisAlignedBB->setBounds() and AxisAlignedBB->setBB()
these usages make no sense in the contexts they are used in, because their uses require another BB to be created anyway. It makes more sense to simply destroy the old one instead of having it mutable.
2019-08-14 17:28:06 +01:00
Dylan K. Taylor
e9ed46a9c7 Entity: avoid bad hack on high load which causes bugs on entity move 2019-08-13 18:08:56 +01:00
Dylan K. Taylor
47b905007e add more legacy metadata constants 2019-08-13 18:01:24 +01:00
Johnmacro
7bfb55ec9a Fixed some errors in support.yml (#3095)
[ci skip]
2019-08-13 14:09:03 +01:00
Dylan K. Taylor
2b38098243 Explosion: fix pos refactor mess 2019-08-12 19:05:21 +01:00
Dylan K. Taylor
2f61d42518 backport d23eeff8324e51ea1a902271603c50551e074c1b: FallingBlock: remove useless check 2019-08-11 19:38:12 +01:00
Dylan K. Taylor
dbb669b156 Entity: add some deprecation warnings to despawnFrom() and despawnFromAll() 2019-08-11 19:34:57 +01:00
Dylan K. Taylor
4d0e8741fe Added a deprecation notice to Entity->getBlocksAround() 2019-08-11 19:32:21 +01:00
Dylan K. Taylor
53dc6e2050 fix TallGrass and Tree random/base amounts never being initialized, closes #2996 2019-08-11 19:06:20 +01:00
Dylan K. Taylor
807b860cfe protocol: fixup data type changes, closes #3072 2019-08-11 19:02:16 +01:00
Dylan K. Taylor
514f395280 SubChunk: reduce visibility of blockLight and skyLight fields 2019-08-10 19:47:41 +01:00
Dylan K. Taylor
399f9242e0 InventoryManager: avoid use of PlayerHotbarPacket
it doesn't work so well when the selected slot is empty.
2019-08-10 18:09:38 +01:00
Dylan K. Taylor
85ad78dda8 DataPacketSendEvent: remove setters
these create unnecessary complexities in the internals.
2019-08-10 18:00:46 +01:00
Dylan K. Taylor
d1775030c3 Remove DataPacketBroadcastEvent, DataPacketSendEvent now supports multiple recipients & packets in one swoop
this makes it simpler to consistently process outbound packets from a plugin. Previously it was necessary to handle 2 events to do 1 job.
2019-08-10 17:59:02 +01:00
Dylan K. Taylor
4c694c57f4 DaylightSensor: Avoid triggering useless block updates if calculated power is unchanged 2019-08-10 17:49:31 +01:00
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
SOFe
d756500928
Also updated Discord link in suppor template and README 2019-08-08 00:03:10 +08:00
SOFe
7ef27a1a21
support.yml Discord link should point to #rules 2019-08-07 14:54:01 +08: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