fix collision handling

This commit is contained in:
Bixilon 2021-04-02 19:52:23 +02:00
parent 77f7ff4a7e
commit 231ef1ef40
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -97,7 +97,7 @@ public class PlayerEntity extends LivingEntity {
public void setGamemode(Gamemodes gamemode) {
this.gamemode = gamemode;
this.hasCollisions = gamemode == Gamemodes.SPECTATOR;
this.hasCollisions = gamemode != Gamemodes.SPECTATOR;
}
public void setName(String name) {