Merge commit 'f3550446267f975b33219bdde6aec8fbea614cb2'

This commit is contained in:
Dylan K. Taylor 2020-01-04 16:36:33 +00:00
commit fde888bf59

View File

@ -117,7 +117,10 @@ class ResourcePacksPacketHandler extends PacketHandler{
//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", ""));
$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");
break;
case ResourcePackClientResponsePacket::STATUS_COMPLETED: