mappings
This commit is contained in:
1 parent
d5cb99d7f9
commit
f97ca9e9bd
4 files changed
+2
-15
No files matched your search
@@ -426,14 +426,6 @@ public class ShapeDispatcher
|
||||
|
||||
public static class DimensionParam extends StringParam
|
||||
{
|
||||
@Override
|
||||
public Value validate(CarpetContext cc, Value value)
|
||||
{
|
||||
String dimStr = value.getString();
|
||||
Optional<DimensionType> dimOp = Registry.DIMENSION_TYPE.getOrEmpty(new Identifier(dimStr));
|
||||
if (!dimOp.isPresent()) throw new InternalExpressionException("Unknown dimension "+dimStr);
|
||||
return value;
|
||||
}
|
||||
@Override
|
||||
public boolean appliesTo(ExpiringShape shape) { return true; }
|
||||
@Override
|
||||
|
||||
@@ -103,7 +103,7 @@ public class ShapesRenderer
|
||||
else
|
||||
{
|
||||
RenderedShape<?> rshape = shapeFactory.apply(client, shape);
|
||||
DimensionType dim = Registry.DIMENSION_TYPE.get(new Identifier(tag.getString("dim")));
|
||||
RegistryKey<World> dim = RegistryKey.of(Registry.DIMENSION, new Identifier(tag.getString("dim")));
|
||||
int key = rshape.key();
|
||||
synchronized (shapes)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user