2023-02-12 22:02:01 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|
|
|
Date: Sun, 12 Feb 2023 10:52:35 -0800
|
|
|
|
Subject: [PATCH] Add missing isFuel Material entries
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/test/java/org/bukkit/support/AbstractTestingBase.java b/src/test/java/org/bukkit/support/AbstractTestingBase.java
|
2023-02-16 00:00:22 +01:00
|
|
|
index a19c1e8253b0dd0da77008f892b68187acd17c4a..5b4c93bb313019ad44eb8283865be45c69d99984 100644
|
2023-02-12 22:02:01 +01:00
|
|
|
--- a/src/test/java/org/bukkit/support/AbstractTestingBase.java
|
|
|
|
+++ b/src/test/java/org/bukkit/support/AbstractTestingBase.java
|
2023-02-16 00:00:22 +01:00
|
|
|
@@ -43,7 +43,12 @@ public abstract class AbstractTestingBase {
|
2023-02-12 22:02:01 +01:00
|
|
|
SharedConstants.tryDetectVersion();
|
|
|
|
Bootstrap.bootStrap();
|
|
|
|
// Set up resource manager
|
|
|
|
- MultiPackResourceManager resourceManager = new MultiPackResourceManager(PackType.SERVER_DATA, Collections.singletonList(new ServerPacksSource().getVanillaPack()));
|
|
|
|
+ // Paper start - make sure to actually load the packs you add API for
|
|
|
|
+ final List<net.minecraft.server.packs.PackResources> packs = new java.util.ArrayList<>();
|
|
|
|
+ // don't worry about closing them, the only pack types should be VanillaPackResources (empty close) and PackPackResources (also empty close)
|
|
|
|
+ new ServerPacksSource().loadPacks(pack -> packs.add(pack.open()));
|
|
|
|
+ final MultiPackResourceManager resourceManager = new MultiPackResourceManager(PackType.SERVER_DATA, packs);
|
|
|
|
+ // Paper end
|
|
|
|
// add tags and loot tables for unit tests
|
|
|
|
LayeredRegistryAccess<RegistryLayer> layers = RegistryLayer.createRegistryAccess();
|
|
|
|
layers = WorldLoader.loadAndReplaceLayer(resourceManager, layers, RegistryLayer.WORLDGEN, RegistryDataLoader.WORLDGEN_REGISTRIES);
|