added params and changed syntax for draw_shape
This commit is contained in:
1 parent
6e4b5ebaf6
commit
a86c127c72
6 files changed
+461
-189
No files matched your search
@@ -11,7 +11,6 @@ import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.Tag;
|
||||
import net.minecraft.network.packet.c2s.play.CustomPayloadC2SPacket;
|
||||
import net.minecraft.util.PacketByteBuf;
|
||||
import net.minecraft.world.dimension.DimensionType;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -38,14 +37,7 @@ public class ClientNetworkHandler
|
||||
put("TickRate", (p, t) -> TickSpeed.tickrate(((AbstractNumberTag)t).getFloat(), false));
|
||||
put("renderShape", (p, t) -> {
|
||||
if (CarpetClient.shapes != null)
|
||||
{
|
||||
CompoundTag boxData = (CompoundTag)t;
|
||||
CarpetClient.shapes.addShape(
|
||||
boxData.getString("type"),
|
||||
DimensionType.byRawId(boxData.getInt("dim")),
|
||||
boxData
|
||||
);
|
||||
}
|
||||
CarpetClient.shapes.addShape((CompoundTag)t);
|
||||
});
|
||||
}};
|
||||
|
||||
|
||||
Reference in new issue
Block a user