mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-25 12:25:37 +01:00
Fixed IllegalArgumentException when performing a rollback preview containing an end crystal
This commit is contained in:
parent
ea69bf0dc5
commit
635a2b0d95
@ -375,13 +375,13 @@ public class Rollback extends Queue {
|
||||
if (preview == 2) {
|
||||
Block block = location1.getBlock();
|
||||
Material blockType = block.getType();
|
||||
if (!BukkitAdapter.ADAPTER.isItemFrame(blockType) && !blockType.equals(Material.PAINTING) && !blockType.equals(Material.ARMOR_STAND)) {
|
||||
if (!BukkitAdapter.ADAPTER.isItemFrame(blockType) && !blockType.equals(Material.PAINTING) && !blockType.equals(Material.ARMOR_STAND) && !blockType.equals(Material.END_CRYSTAL)) {
|
||||
Util.sendBlockChange(player, location1, block.getBlockData());
|
||||
blockCount1++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ((!BukkitAdapter.ADAPTER.isItemFrame(rowType)) && (rowType != Material.PAINTING) && (rowType != Material.ARMOR_STAND)) {
|
||||
if ((!BukkitAdapter.ADAPTER.isItemFrame(rowType)) && (rowType != Material.PAINTING) && (rowType != Material.ARMOR_STAND) && (rowType != Material.END_CRYSTAL)) {
|
||||
BlockData sendBlockData = blockData;
|
||||
if (sendBlockData == null) {
|
||||
sendBlockData = rowType.createBlockData();
|
||||
|
Loading…
Reference in New Issue
Block a user