mirror of
https://github.com/GTNewHorizons/bdlib.git
synced 2026-11-25 14:34:21 +00:00
/oredistribution - Fixed meta detection with some ores (e.g. lapis)
This commit is contained in:
1 parent
31b5ab9d52
commit
4900537a82
1 file changed
+3
-5
@@ -70,12 +70,10 @@ object CommandOreDistribution extends CommandBase {
|
||||
z <- startZ - radius to startZ + radius
|
||||
if !world.isAirBlock(x, y, z)
|
||||
} {
|
||||
val block = world.getBlock(x, y, z)
|
||||
val item = Item.getItemFromBlock(block)
|
||||
val damage = block.getDamageValue(world, x, y, z)
|
||||
for (ore <- ores.get((item, damage))) {
|
||||
val key = (Item.getItemFromBlock(world.getBlock(x, y, z)), world.getBlockMetadata(x, y, z))
|
||||
for (ore <- ores.get(key)) {
|
||||
distribution(ore) += 1
|
||||
kinds(ore) += ((item, damage))
|
||||
kinds(ore) += key
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user