Merge branch 'master' into 1.15

This commit is contained in:
gnembon committed 2019-10-29 00:47:10 -03:00
commit 125a409813
5 files changed
+35 -8

No files matched your search

@@ -28,6 +28,8 @@ import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static carpet.script.value.NBTSerializableValue.nameFromRegistryId;
public class BlockValue extends Value
{
public static final BlockValue AIR = new BlockValue(Blocks.AIR.getDefaultState(), null, BlockPos.ORIGIN);
@@ -234,7 +236,7 @@ public class BlockValue extends Value
@Override
public String getString()
{
return Registry.BLOCK.getId(getBlockState().getBlock()).getPath();
return nameFromRegistryId(Registry.BLOCK.getId(getBlockState().getBlock()));
}
@Override