mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 11:26:42 +00:00
Abstracted type detection of simulateBlockMine into BlockType.
This commit is contained in:
@ -1012,7 +1012,7 @@ public class EditSession {
|
||||
BaseBlock curBlockType = getBlock(pt);
|
||||
|
||||
if ((fromBlockTypes == null && !curBlockType.isAir())
|
||||
|| (fromBlockTypes != null && curBlockType.inIterable(fromBlockTypes))) {
|
||||
|| (fromBlockTypes != null && curBlockType.inIterable(fromBlockTypes))) { // Probably faster if someone adds a proper hashCode to BaseBlock
|
||||
if (setBlock(pt, toBlock)) {
|
||||
++affected;
|
||||
}
|
||||
@ -1068,7 +1068,7 @@ public class EditSession {
|
||||
BaseBlock curBlockType = getBlock(pt);
|
||||
|
||||
if ((fromBlockTypes == null && !curBlockType.isAir())
|
||||
|| (fromBlockTypes != null && curBlockType.inIterable(fromBlockTypes))) {
|
||||
|| (fromBlockTypes != null && curBlockType.inIterable(fromBlockTypes))) { // Probably faster if someone adds a proper hashCode to BaseBlock
|
||||
if (setBlock(pt, pattern.next(pt))) {
|
||||
++affected;
|
||||
}
|
||||
|
Reference in New Issue
Block a user