diff --git a/common/src/lib/java/dev/engine_room/flywheel/lib/visual/component/ShadowComponent.java b/common/src/lib/java/dev/engine_room/flywheel/lib/visual/component/ShadowComponent.java
index 65a2d8dcd..0f8d0a97d 100644
--- a/common/src/lib/java/dev/engine_room/flywheel/lib/visual/component/ShadowComponent.java
+++ b/common/src/lib/java/dev/engine_room/flywheel/lib/visual/component/ShadowComponent.java
@@ -42,7 +42,7 @@
* The shadow will be cast on blocks at most {@code min(radius, 2 * strength)} blocks below the entity.
*/
public final class ShadowComponent implements EntityComponent {
- private static final ResourceLocation SHADOW_TEXTURE = new ResourceLocation("textures/misc/shadow.png");
+ private static final ResourceLocation SHADOW_TEXTURE = ResourceLocation.withDefaultNamespace("textures/misc/shadow.png");
private static final Material SHADOW_MATERIAL = SimpleMaterial.builder()
.texture(SHADOW_TEXTURE)
.mipmap(false)
diff --git a/common/src/main/java/dev/engine_room/flywheel/vanilla/MinecartVisual.java b/common/src/main/java/dev/engine_room/flywheel/vanilla/MinecartVisual.java
index bc58879d8..c11e99d1a 100644
--- a/common/src/main/java/dev/engine_room/flywheel/vanilla/MinecartVisual.java
+++ b/common/src/main/java/dev/engine_room/flywheel/vanilla/MinecartVisual.java
@@ -32,7 +32,7 @@
import net.minecraft.world.phys.Vec3;
public class MinecartVisual extends ComponentEntityVisual implements SimpleTickableVisual, SimpleDynamicVisual {
- private static final ResourceLocation TEXTURE = new ResourceLocation("textures/entity/minecart.png");
+ private static final ResourceLocation TEXTURE = ResourceLocation.withDefaultNamespace("textures/entity/minecart.png");
private static final Material MATERIAL = SimpleMaterial.builder()
.texture(TEXTURE)
.mipmap(false)
diff --git a/forge/src/lib/java/dev/engine_room/flywheel/lib/model/baked/PartialModelEventHandler.java b/forge/src/lib/java/dev/engine_room/flywheel/lib/model/baked/PartialModelEventHandler.java
index 534360ff9..d87eee208 100644
--- a/forge/src/lib/java/dev/engine_room/flywheel/lib/model/baked/PartialModelEventHandler.java
+++ b/forge/src/lib/java/dev/engine_room/flywheel/lib/model/baked/PartialModelEventHandler.java
@@ -6,6 +6,7 @@
import net.minecraft.client.resources.model.BakedModel;
import net.minecraft.client.resources.model.ModelResourceLocation;
+import net.minecraft.resources.ResourceLocation;
import net.neoforged.neoforge.client.event.ModelEvent;
@ApiStatus.Internal
@@ -15,7 +16,7 @@ private PartialModelEventHandler() {
public static void onRegisterAdditional(ModelEvent.RegisterAdditional event) {
for (ResourceLocation modelLocation : PartialModel.ALL.keySet()) {
- event.register(modelLocation);
+ event.register(ModelResourceLocation.standalone(modelLocation));
}
}
@@ -24,7 +25,7 @@ public static void onBakingCompleted(ModelEvent.BakingCompleted event) {
Map models = event.getModels();
for (PartialModel partial : PartialModel.ALL.values()) {
- partial.bakedModel = models.get(partial.modelLocation());
+ partial.bakedModel = models.get(ModelResourceLocation.standalone(partial.modelLocation()));
}
}
}
diff --git a/forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java b/forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java
index 70b6ac028..2cc0dee9d 100644
--- a/forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java
+++ b/forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java
@@ -7,7 +7,7 @@
public class FlwImplXplatImpl implements FlwImplXplat {
@Override
public void dispatchReloadLevelRendererEvent(ClientLevel level) {
- MinecraftForge.EVENT_BUS.post(new ReloadLevelRendererEvent(level));
+ NeoForge.EVENT_BUS.post(new ReloadLevelRendererEvent(level));
}
@Override
diff --git a/forge/src/main/java/dev/engine_room/flywheel/impl/FlwLibXplatImpl.java b/forge/src/main/java/dev/engine_room/flywheel/impl/FlwLibXplatImpl.java
index b2cadac44..3671f3bf1 100644
--- a/forge/src/main/java/dev/engine_room/flywheel/impl/FlwLibXplatImpl.java
+++ b/forge/src/main/java/dev/engine_room/flywheel/impl/FlwLibXplatImpl.java
@@ -19,6 +19,7 @@
import net.minecraft.client.renderer.block.ModelBlockRenderer;
import net.minecraft.client.resources.model.BakedModel;
import net.minecraft.client.resources.model.ModelManager;
+import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.core.BlockPos;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.BlockAndTintGetter;
@@ -30,7 +31,7 @@ public class FlwLibXplatImpl implements FlwLibXplat {
@Override
@UnknownNullability
public BakedModel getBakedModel(ModelManager modelManager, ResourceLocation location) {
- return modelManager.getModel(location);
+ return modelManager.getModel(ModelResourceLocation.standalone(location));
}
@Override