mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 21:51:19 -04:00
Fix null reference when you do /undo physics but your rank can't do it (Thanks goodlyay/Cheesse)
This commit is contained in:
parent
0b9ec61ee1
commit
d5361d4693
@ -74,7 +74,7 @@ namespace MCGalaxy.Commands.Building {
|
||||
}
|
||||
|
||||
void UndoPhysics(Player p, TimeSpan delta) {
|
||||
if (!CheckExtraPerm(p, 1)) { MessageNeedExtra(p, 2); return; }
|
||||
if (!CheckExtraPerm(p, 1)) { MessageNeedExtra(p, 1); return; }
|
||||
if (p != null && !p.group.CanExecute("physics")) {
|
||||
Player.Message(p, "You can only undo physics if you can use /physics."); return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user