mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Fix running test mods (#9211)
This commit is contained in:
1 parent
dccb1ab3a4
commit
09aac3a4d3
2 files changed
+2
-2
No files matched your search
@@ -102,7 +102,7 @@ public class MegaModelTest
|
||||
{
|
||||
|
||||
@SubscribeEvent
|
||||
public static void onModelBakingCompleted(ModelEvent.BakingCompleted event)
|
||||
public static void onModelBakingCompleted(ModelEvent.ModifyBakingResult event)
|
||||
{
|
||||
var name = new ModelResourceLocation(MOD_ID, REG_NAME, "");
|
||||
event.getModels().computeIfPresent(name, (n, m) -> new TransformingModelWrapper(m));
|
||||
|
||||
@@ -63,7 +63,7 @@ public class TRSRTransformerTest {
|
||||
event.accept(TEST_ITEM);
|
||||
}
|
||||
|
||||
public void onModelBake(ModelEvent.BakingCompleted e) {
|
||||
public void onModelBake(ModelEvent.ModifyBakingResult e) {
|
||||
for (ResourceLocation id : e.getModels().keySet()) {
|
||||
if (MODID.equals(id.getNamespace()) && "test".equals(id.getPath())) {
|
||||
e.getModels().put(id, new MyBakedModel(e.getModels().get(id)));
|
||||
|
||||
Reference in new issue
Block a user