Fix amber ore (#1633)

Amber ore was not adjusted to #1509
This commit is contained in:
Krzysztof Wiśniewski 2025-06-19 16:46:28 +02:00 committed by GitHub
parent 74ceef2902
commit 9c33f8184d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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",
} }

View File

@ -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{