mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-12 03:13:00 +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:
@@ -268,12 +268,6 @@ public class TestPlatformHelper extends AbstractComputerCraftAPI implements Plat
|
||||
return key;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public ResourceLocation tryGetKey(T object) {
|
||||
return registry.getKey(object);
|
||||
}
|
||||
|
||||
@Override
|
||||
public T get(ResourceLocation location) {
|
||||
var object = registry.get(location);
|
||||
|
||||
Reference in New Issue
Block a user