forked from zhdev/griefus
Minor refactoring in Util class
This commit is contained in:
parent
fae4c9e690
commit
b5b6acaa9d
2 changed files with 166 additions and 207 deletions
|
|
@ -480,7 +480,7 @@ public class Rollback extends Queue {
|
|||
Block block = location1.getBlock();
|
||||
Material blockType = block.getType();
|
||||
if (!BukkitAdapter.ADAPTER.isItemFrame(blockType) && !blockType.equals(Material.PAINTING) && !blockType.equals(Material.ARMOR_STAND)) {
|
||||
Util.sendBlockChange(player, location1, blockType, block.getBlockData());
|
||||
Util.sendBlockChange(player, location1, block.getBlockData());
|
||||
blockCount1++;
|
||||
}
|
||||
}
|
||||
|
|
@ -490,7 +490,7 @@ public class Rollback extends Queue {
|
|||
if (sendBlockData == null) {
|
||||
sendBlockData = rowType.createBlockData();
|
||||
}
|
||||
Util.sendBlockChange(player, location1, rowType, sendBlockData);
|
||||
Util.sendBlockChange(player, location1, sendBlockData);
|
||||
blockCount1++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue