possibly fix a crash during selecting
All checks were successful
/ Build BaseBand (push) Successful in 2m37s

This commit is contained in:
Daniella / Tove 2024-10-05 01:54:03 +02:00
parent 80fd4047ce
commit 262c217d6d
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -82,7 +82,7 @@ public class Select extends Feature {
if(!renderSelection)
return;
Selection selection = Select.selection;
if(selection == null) {
if(selection == null && mc.objectMouseOver != null) {
BlockPos pos = mc.objectMouseOver.getBlockPos();
//noinspection ConstantValue - pos can indeed be null.
if(renderIncomplete && begin != null && pos != null)