mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Auto-detect registry namespace when using a legacy string id in EntityEntryBuilder fixes #4410 (#4411)
This commit is contained in:
1 parent
f2b07e8db1
commit
dc2014cdf1
1 file changed
+2
-1
@@ -141,7 +141,8 @@ public final class EntityEntryBuilder<E extends Entity>
|
||||
@Nonnull
|
||||
public final EntityEntryBuilder<E> id(@Nonnull final String id, final int network)
|
||||
{
|
||||
return this.id(new ResourceLocation(checkNotNull(id, "id")), network);
|
||||
checkNotNull(id, "id");
|
||||
return this.id(new ResourceLocation(id.indexOf(':') == -1 ? this.mod.getModId() + ':' + id : id), network);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user