Cursor should not change for other teams when hovering over doors and construction. (#4838)

* Cursor should not change for other teams.

* Use Built-in interaction check

Co-authored-by: Patrick 'Quezler' Mounier <Quezler@me.com>

* Building should use built-in check, same treatment for ConstructBlock

Co-authored-by: Patrick 'Quezler' Mounier <Quezler@me.com>
This commit is contained in:
MEEP of Faith
2021-03-02 09:25:15 -05:00
committed by GitHub
co-authored by Patrick 'Quezler' Mounier
parent 05dc13c922
commit a89d50e74d
3 changed files with 3 additions and 3 deletions
@@ -172,7 +172,7 @@ public class ConstructBlock extends Block{
@Override
public Cursor getCursor(){
return SystemCursor.hand;
return interactable(player.team()) ? SystemCursor.hand : SystemCursor.arrow;
}
@Override
@@ -126,7 +126,7 @@ public class Door extends Wall{
@Override
public Cursor getCursor(){
return SystemCursor.hand;
return interactable(player.team()) ? SystemCursor.hand : SystemCursor.arrow;
}
@Override