Skip to content

Commit

Permalink
Removed redundant accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessBullets committed Mar 24, 2024
1 parent e763704 commit cf6deca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/main/java/turniplabs/halplibe/helper/EntityHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import net.minecraft.client.render.tileentity.TileEntityRenderer;
import net.minecraft.core.block.entity.TileEntity;
import net.minecraft.core.entity.Entity;
import turniplabs.halplibe.mixin.accessors.EntityListAccessor;
import net.minecraft.core.entity.EntityDispatcher;
import turniplabs.halplibe.mixin.accessors.RenderManagerAccessor;
import turniplabs.halplibe.mixin.accessors.TileEntityAccessor;
import turniplabs.halplibe.mixin.accessors.TileEntityRendererAccessor;
Expand Down Expand Up @@ -44,7 +44,7 @@ public static void createSpecialTileEntity(Class<? extends TileEntity> clazz, Ti
*/
public static class Core {
public static void createEntity(Class<? extends Entity> clazz, int id, String name) {
EntityListAccessor.callAddMapping(clazz, name, id);
EntityDispatcher.addMapping(clazz, name, id);
}
public static void createTileEntity(Class<? extends TileEntity> clazz, String name) {
TileEntityAccessor.callAddMapping(clazz, name);
Expand Down

This file was deleted.

0 comments on commit cf6deca

Please sign in to comment.