mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
fix: add null check for block targetted with inspect brush (#2443)
This commit is contained in:
parent
b9517a5cfb
commit
90d52f39d9
@ -74,7 +74,12 @@ public class InspectBrush extends BrushTool {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
BlockVector3 target = getTarget(player, rightClick).toBlockPoint();
|
Vector3 targetVector = getTarget(player, rightClick);
|
||||||
|
if (targetVector == null) {
|
||||||
|
player.print(Caption.of("worldedit.tool.no-block"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
BlockVector3 target = targetVector.toBlockPoint();
|
||||||
final int x = target.getBlockX();
|
final int x = target.getBlockX();
|
||||||
final int y = target.getBlockY();
|
final int y = target.getBlockY();
|
||||||
final int z = target.getBlockZ();
|
final int z = target.getBlockZ();
|
||||||
|
Loading…
Reference in New Issue
Block a user