mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
Merge commit 'f3550446267f975b33219bdde6aec8fbea614cb2'
This commit is contained in:
commit
fde888bf59
@ -117,7 +117,10 @@ class ResourcePacksPacketHandler extends PacketHandler{
|
|||||||
//we support chemistry blocks by default, the client should already have this installed
|
//we support chemistry blocks by default, the client should already have this installed
|
||||||
array_unshift($stack, new ResourcePackStackEntry("0fba4063-dba1-4281-9b89-ff9390653530", "1.0.0", ""));
|
array_unshift($stack, new ResourcePackStackEntry("0fba4063-dba1-4281-9b89-ff9390653530", "1.0.0", ""));
|
||||||
|
|
||||||
$this->session->sendDataPacket(ResourcePackStackPacket::create($stack, [], $this->resourcePackManager->resourcePacksRequired(), false));
|
//we don't force here, because it doesn't have user-facing effects
|
||||||
|
//but it does have an annoying side-effect when true: it makes
|
||||||
|
//the client remove its own non-server-supplied resource packs.
|
||||||
|
$this->session->sendDataPacket(ResourcePackStackPacket::create($stack, [], false, false));
|
||||||
$this->session->getLogger()->debug("Applying resource pack stack");
|
$this->session->getLogger()->debug("Applying resource pack stack");
|
||||||
break;
|
break;
|
||||||
case ResourcePackClientResponsePacket::STATUS_COMPLETED:
|
case ResourcePackClientResponsePacket::STATUS_COMPLETED:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user