From 0355436f731a4cd6c63bc7d776a391bf43e19a41 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 9 Apr 2016 22:40:36 +0200 Subject: Fix player hosting block ability --- src/ch/epfl/xblast/server/Block.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/epfl/xblast/server/Block.java b/src/ch/epfl/xblast/server/Block.java index 5a139ff..6076297 100644 --- a/src/ch/epfl/xblast/server/Block.java +++ b/src/ch/epfl/xblast/server/Block.java @@ -74,7 +74,7 @@ public enum Block { * @return T(this block can host a player) */ public boolean canHostPlayer() { - return this.isFree(); + return this.isFree() || this.isBonus(); } /** -- cgit v1.2.3