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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user