mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Fixed a NPE in HostedMatch.
This commit is contained in:
@@ -293,7 +293,7 @@ public class HostedMatch {
|
|||||||
for (final PlayerControllerHuman humanController : humanControllers) {
|
for (final PlayerControllerHuman humanController : humanControllers) {
|
||||||
humanController.getGui().updateSingleCard(event.blocker);
|
humanController.getGui().updateSingleCard(event.blocker);
|
||||||
final PlayerView p = humanController.getPlayer().getView();
|
final PlayerView p = humanController.getPlayer().getView();
|
||||||
if (event.attackerBeingBlocked.getController().equals(p)) {
|
if (event.attackerBeingBlocked != null && event.attackerBeingBlocked.getController().equals(p)) {
|
||||||
humanController.getGui().autoPassCancel(p);
|
humanController.getGui().autoPassCancel(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user