mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-24 00:56:38 +00:00
fix up
This commit is contained in:
@@ -45,18 +45,4 @@ public abstract class ServerWorldMixin extends World {
|
|||||||
}
|
}
|
||||||
return instance.matchesKey(tRegistryKey);
|
return instance.matchesKey(tRegistryKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "<init>",
|
|
||||||
at = @At(value = "INVOKE",
|
|
||||||
target = "Lnet/minecraft/village/raid/RaidManager;nameFor(Lnet/minecraft/registry/entry/RegistryEntry;)" +
|
|
||||||
"Ljava/lang/String;"))
|
|
||||||
public String nameForProxy(RegistryEntry<DimensionType> dimensionTypeEntry) {
|
|
||||||
RegistryEntry<DimensionType> entry = dimensionTypeEntry;
|
|
||||||
if(this.getRegistryKey() == World.END) {
|
|
||||||
Registry<DimensionType> dimensionTypeRegistry = getRegistryManager().getOrThrow(RegistryKeys.DIMENSION_TYPE);
|
|
||||||
entry = dimensionTypeRegistry.getEntry(dimensionTypeRegistry.get(DimensionTypes.THE_NETHER));
|
|
||||||
|
|
||||||
}
|
|
||||||
return RaidManager.nameFor(entry);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user