-
Notifications
You must be signed in to change notification settings - Fork 4
Only mine Ores of the same type #3
Copy link
Copy link
Open
Description
In its current state, the mod mines all adjacent ores, no matter what type they are.
Example: Player mines Gold Ore but there's also Iron Ore next to it. Both will be mined.
Don't know if it's a change for the public but I've added the change for myself already.
for (LevelObject levelObject : adjacentObjects) {
int currentTileX = levelObject.tileX;
int currentTileY = levelObject.tileY;
if (!levelObject.object.getStringID().equals(result.levelObject.object.getStringID())) {
continue;
}
if (!shouldPropagate(levelObject.object) || (currentTileX != tileX && currentTileY != tileY)) {
continue;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels