20w30a
This commit is contained in:
1 parent
49a88cb27f
commit
4fe6a8d80f
9 files changed
+18
-16
No files matched your search
@@ -2368,7 +2368,7 @@ public class CarpetExpression
|
||||
ServerWorld world = ((CarpetContext) c).s.getWorld();
|
||||
|
||||
List<Value> neighbours = new ArrayList<>();
|
||||
neighbours.add(new BlockValue(null, world, center.up()));
|
||||
neighbours.add(new BlockValue(null, world, center.method_30931()));
|
||||
neighbours.add(new BlockValue(null, world, center.down()));
|
||||
neighbours.add(new BlockValue(null, world, center.north()));
|
||||
neighbours.add(new BlockValue(null, world, center.south()));
|
||||
|
||||
@@ -278,7 +278,7 @@ public class ShapesRenderer
|
||||
text_x = (float)(-textRenderer.getWidth(shape.value.getString()));
|
||||
}
|
||||
VertexConsumerProvider.Immediate immediate = VertexConsumerProvider.immediate(Tessellator.getInstance().getBuffer());
|
||||
textRenderer.draw(shape.value, text_x, 0.0F, shape.textcolor, false, AffineTransformation.identity().getMatrix(), immediate, false, shape.textbck, 15728880);
|
||||
textRenderer.method_30882(shape.value, text_x, 0.0F, shape.textcolor, false, AffineTransformation.identity().getMatrix(), immediate, false, shape.textbck, 15728880);
|
||||
immediate.draw();
|
||||
RenderSystem.popMatrix();
|
||||
RenderSystem.enableCull();
|
||||
|
||||
@@ -68,8 +68,10 @@ public class ValueConversions
|
||||
public static Value fromPath(ServerWorld world, Path path)
|
||||
{
|
||||
List<Value> nodes = new ArrayList<>();
|
||||
for (PathNode node: path.getNodes())
|
||||
//for (PathNode node: path.getNodes())
|
||||
for (int i = 0, len = path.getLength(); i < len; i++)
|
||||
{
|
||||
PathNode node = path.getNode(i);
|
||||
nodes.add( ListValue.of(
|
||||
new BlockValue(null, world, node.getPos()),
|
||||
new StringValue(node.type.name().toLowerCase(Locale.ROOT)),
|
||||
|
||||
Reference in new issue
Block a user