1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-18 22:25:12 +00:00

Simplify the previous patch a little

We can use BlockEntityType.getKey, rather than having to extend our
registry wrappers.
This commit is contained in:
Jonathan Coates
2024-03-17 16:21:56 +00:00
parent 128ac2f109
commit ab00580389
5 changed files with 2 additions and 22 deletions

View File

@@ -360,12 +360,6 @@ public class PlatformHelperImpl implements PlatformHelper {
return key;
}
@Nullable
@Override
public ResourceLocation tryGetKey(T object) {
return registry.getKey(object);
}
@Override
public T get(ResourceLocation location) {
var object = registry.getValue(location);