mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 03:06:55 -04:00
parent
74ceef2902
commit
9c33f8184d
@ -35,7 +35,7 @@
|
|||||||
.drops = .{
|
.drops = .{
|
||||||
.{.items = .{.auto}},
|
.{.items = .{.auto}},
|
||||||
},
|
},
|
||||||
.rotation = .ore,
|
.rotation = "cubyz:ore",
|
||||||
.model = "cubyz:cube",
|
.model = "cubyz:cube",
|
||||||
.texture = "cubyz:amber_ore",
|
.texture = "cubyz:amber_ore",
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ pub fn register(_: []const u8, id: []const u8, zon: ZonElement) u16 {
|
|||||||
const oreProperties = zon.getChild("ore");
|
const oreProperties = zon.getChild("ore");
|
||||||
if(oreProperties != .null) blk: {
|
if(oreProperties != .null) blk: {
|
||||||
if(!std.mem.eql(u8, zon.get([]const u8, "rotation", "cubyz:no_rotation"), "cubyz:ore")) {
|
if(!std.mem.eql(u8, zon.get([]const u8, "rotation", "cubyz:no_rotation"), "cubyz:ore")) {
|
||||||
std.log.err("Ore must have rotation mode \"ore\"!", .{});
|
std.log.err("Ore must have rotation mode \"cubyz:ore\"!", .{});
|
||||||
break :blk;
|
break :blk;
|
||||||
}
|
}
|
||||||
ores.append(Ore{
|
ores.append(Ore{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user