mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 19:46:42 +01:00
Fixed projectiles not rendering correctly to the client
This commit is contained in:
parent
ff707b679e
commit
41923f82e1
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ import net.minecraftforge.fml.common.registry.EntityEntryBuilder;
|
||||||
|
|
||||||
public class EntityType {
|
public class EntityType {
|
||||||
|
|
||||||
|
private int projectilNetworkId = 0;
|
||||||
private final String modid;
|
private final String modid;
|
||||||
|
|
||||||
public EntityType(String modid) {
|
public EntityType(String modid) {
|
||||||
|
@ -31,7 +32,7 @@ public class EntityType {
|
||||||
public EntityEntry projectile(Class<? extends Entity> cls, String name, int range, int frequency, boolean includeVelocity) {
|
public EntityEntry projectile(Class<? extends Entity> cls, String name, int range, int frequency, boolean includeVelocity) {
|
||||||
return EntityEntryBuilder.create().entity(cls)
|
return EntityEntryBuilder.create().entity(cls)
|
||||||
.name(name)
|
.name(name)
|
||||||
.id(new ResourceLocation(modid, name), 0).tracker(range, frequency, includeVelocity)
|
.id(new ResourceLocation(modid, name), projectilNetworkId++).tracker(range, frequency, includeVelocity)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue