the camper (#8806)

This commit is contained in:
Mythril382 2023-07-24 04:28:50 +08:00 committed by GitHub
parent 28372b0f47
commit bfdd7ecc3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ public class PlayerListFragment{
}
//there's generally no reason to team switch outside PvP or sandbox, and it's basically an easy way to cheat
if(state.rules.pvp || state.rules.infiniteResources){
if(!state.isCampaign() && (state.rules.pvp || state.rules.infiniteResources)){
t.button("@player.team", Icon.redo, bstyle, () -> {
var teamSelect = new BaseDialog(Core.bundle.get("player.team") + ": " + user.name);
teamSelect.setFillParent(false);