Dylan K. Taylor
764f92c456
BlockLegacyIdHelper: fixed a mistake in exception message
2020-08-03 23:59:06 +01:00
Dylan K. Taylor
e1d80f05b1
Merge branch 'stable' into master
2020-08-03 20:14:46 +01:00
Dylan K. Taylor
3c001b310f
fix phpstan analyze failure
2020-08-03 19:54:14 +01:00
Dylan K. Taylor
198a106b9f
Merge branch 'stable' of https://github.com/pmmp/pocketmine-mp into stable
2020-08-03 19:37:30 +01:00
Dylan K. Taylor
1f5e0bc96d
Updated BedrockData submodule, new recipes.json format
2020-08-03 19:36:32 +01:00
VixikHD
41f7c07703
Entity: report the class in getSaveId() unregistered entity exception ( #3744 )
2020-08-03 00:20:28 +01:00
Dylan K. Taylor
f0a0c9a85f
Player: remove useless var
2020-08-02 23:49:07 +01:00
Dylan K. Taylor
5b620d964e
Do not assume the presence of a crafting transaction closing marker
...
fixes #3655 , fixes #3241
instead of guessing where the end of the transaction is, we attempt validation after every piece of the transaction, with the assumption being that a crafting transaction will not validate until it's complete.
2020-08-02 23:37:33 +01:00
Dylan K. Taylor
1525001565
protocol ItemStack: added equals() method to compare net itemstacks directly
...
this will be needed for more than just this little check once item NBT gets cleaned out properly, since we'll need to compare object equality by network layer stuff instead of internals (where different network objects might deserialize to the same internal items).
2020-08-02 23:22:39 +01:00
Dylan K. Taylor
756840f11d
Fixed matchItems corrupting CraftingTransaction internal state on repeated validation
...
This bug became apparent while developing a more robust fix for 1.16 crafting.
2020-08-02 23:07:47 +01:00
Dylan K. Taylor
df2c3136c9
VersionString: added missing start anchor to regex
2020-08-02 21:10:47 +01:00
Dylan K. Taylor
2e0f7102e8
ItemBlock: remove superfluous doc comments generated by PhpStorm
2020-08-01 16:06:38 +01:00
Dylan K. Taylor
1500668d4e
imports cleanup
2020-07-25 19:21:22 +01:00
Dylan K. Taylor
2c29634d03
Remove VERSION and GIT_COMMIT constants
...
these are now lazily computed in VersionInfo as needed.
2020-07-25 19:17:33 +01:00
Dylan K. Taylor
2645b19617
Convert VersionInfo into a final class
...
this allows it to be loaded by the autoloader without additional changes.
2020-07-25 19:00:48 +01:00
Dylan K. Taylor
5910905e95
PacketBatch::getPackets() may throw PacketDecodeException
2020-07-22 15:38:24 +01:00
Dylan K. Taylor
8402465fd2
PacketBatch is now immutable
2020-07-22 15:37:06 +01:00
Dylan K. Taylor
798efc370c
PacketBatch: get rid of putPacket()
2020-07-22 15:24:08 +01:00
Dylan K. Taylor
2fcee432c1
NetworkSession: store Packet[] for buffering instead of PacketBatch
...
this reduces memory allocations for buffering (in theory).
2020-07-22 15:18:01 +01:00
Dylan K. Taylor
ed144a1709
remove unused imports
2020-07-21 19:29:12 +01:00
Dylan K. Taylor
e3dce1f8bd
Merge branch 'stable'
...
# Conflicts:
# resources/vanilla
# src/event/player/PlayerChatEvent.php
2020-07-21 19:28:00 +01:00
Dylan K. Taylor
a6b5cddd5a
remove unused import
2020-07-21 19:26:24 +01:00
Dylan K. Taylor
93e6d7e1a2
thanks for nothing phpstorm
2020-07-21 19:23:30 +01:00
Dylan K. Taylor
bc52a38922
Improved network bandwidth data collection
2020-07-21 19:21:27 +01:00
Dylan K. Taylor
92afad5e6f
Updated RakLib to pmmp/RakLib@6fbccdb6a7
2020-07-21 16:18:14 +01:00
Dylan K. Taylor
977f9ec497
Merge branch 'stable'
...
# Conflicts:
# composer.lock
# resources/vanilla
# src/VersionInfo.php
# src/pocketmine/block/Podzol.php
2020-07-21 11:57:24 +01:00
Dylan K. Taylor
5b9453af43
WhitelistCommand: fixed incorrect implode() parameter order
...
PHP allows this to work either way for legacy reasons, but glue-first is the canonical way for a long time.
2020-07-21 11:46:11 +01:00
Dylan K. Taylor
213afa42dd
BlockFactory: make registerElements() a bit less wide
2020-07-19 13:09:48 +01:00
Dylan K. Taylor
1ba32c98c7
protocol: avoid potential constructor refactoring packet decode bug
...
if the order of the constructor parameters were changed, it would cause these statements to be reordered, causing packet fields to be decoded in the wrong order.
2020-07-17 23:19:33 +01:00
Dylan K. Taylor
3e2cfd28cc
ResourcePackManager: change validity check to is_string()
2020-07-17 23:07:37 +01:00
Dylan K. Taylor
5f70b96081
ResourcePack: do not export getPath()
...
a resource pack is not required to come from a location on disk (although it's currently the only practical option).
2020-07-17 23:03:10 +01:00
Dylan K. Taylor
915d63a2e8
Button: rename powered property to pressed
2020-07-17 14:54:51 +01:00
Dylan K. Taylor
9872bb4cb8
Enchantment: remove dead classes
2020-07-17 14:41:04 +01:00
Dylan K. Taylor
b09b619a30
updated VanillaBlocks
2020-07-17 14:23:32 +01:00
TheNewHEROBRINEX
8bba25f4f5
Fix wrong hardness value for Podzol ( #3709 )
2020-07-16 22:07:41 +01:00
Dylan K. Taylor
1050485164
MemoryManager: remove class name from object references
...
it's possible to see this information by looking up the hash, which it's necessary to do in order to see any interesting information anyway.
2020-07-13 11:51:25 +01:00
Dylan K. Taylor
efd67a132e
MemoryDump: fixed duplicated properties, reduce useless noise
2020-07-13 11:44:21 +01:00
Dylan K. Taylor
46c4c65022
MemoryManager: remove duplicated information from memory dump
2020-07-13 11:10:22 +01:00
Dylan K. Taylor
e199f403dc
MemoryManager: remove useless information from object dumps
2020-07-13 11:08:03 +01:00
Dylan K. Taylor
2e6b62fdec
3.14.3 is next
2020-07-13 10:46:58 +01:00
Dylan K. Taylor
4fc5b9772a
Release 3.14.2
2020-07-13 10:46:57 +01:00
Dylan K. Taylor
d9c3ec5f91
Merge branch 'stable'
...
# Conflicts:
# resources/vanilla
2020-07-11 20:14:42 +01:00
Dylan K. Taylor
5d4880b0a7
SendUsageTask: fixed json_encode() choking on player list keys
2020-07-11 20:14:04 +01:00
Dylan K. Taylor
217f9c574a
Player no longer implements ChunkLoader
...
this stops plugins from misusing Player as a ChunkLoader in ways it doesn't know about, causing leaks and god knows what else.
2020-07-11 18:48:10 +01:00
Dylan K. Taylor
180c0e4999
World: rely on Player being a ChunkListener instead of ChunkLoader
...
ChunkListeners are less dangerous, and also make more sense considering the usages.
Ideally we want to not have to care if a listener is a Player at all, but that's still some work away yet.
2020-07-11 18:20:32 +01:00
Dylan K. Taylor
923ea46476
PlayerPreLoginEvent: implement Cancellable again
2020-07-11 17:47:53 +01:00
Dylan K. Taylor
2226efd7a0
added base data handling for Lab Table, Compound Creator, Element Constructor and Material Reducer
...
these also have a blockentity which needs to be implemented as well.
2020-07-11 17:44:50 +01:00
SOFe
81b38cda5d
Removed setCancelled
from Cancellable
( #3685 )
...
* Removed `setCancelled` from `Cancellable`
Before anyone screams, THIS CHANGE WILL NOT AFFECT MOST PLUGINS
(although it allows future changes to break some).
This commit rewrites the documentation of `Cancellable`,
clarifying the concept of "cancelled" from the perspective of the event
framework.
This commit also removes the `setCancelled` method from `Cancellable`.
This does not affect plugins using the (originally standard)
`setCancelled` method on events directly, since the implementation on
classes was not removed. On the other hand, it no longer requires
`Cancellable` events to implement this method, allowing flexibility on
cancelation conditions, e.g. subclasses may require additional
parameters for cancellation without needing to use hacks to check that
the user cancelled the event in the correct way.
2020-07-11 17:42:15 +01:00
Dylan K. Taylor
d4f6dc8179
BlockFactory: make color block registration slightly less painful to look at
2020-07-11 10:50:02 +01:00
Dylan K. Taylor
62815f6c9b
Furnace: get rid of entirely unnecessary ItemFactory usage
2020-07-10 21:38:29 +01:00