mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -04:00
Fix /gun not working properly after trying to use it with a block you can't place.
This commit is contained in:
parent
cc2b3108c6
commit
abfe6a99a1
@ -28,9 +28,8 @@ namespace MCGalaxy.Commands.Fun {
|
||||
|
||||
protected override void PlacedMark(Player p, ushort x, ushort y, ushort z, ExtBlock block) {
|
||||
p.RevertBlock(x, y, z);
|
||||
if (!p.level.Config.Guns || !CommandParser.IsBlockAllowed(p, "place", block)) {
|
||||
p.ClearBlockchange(); return;
|
||||
}
|
||||
if (!p.level.Config.Guns) { p.ClearBlockchange(); return; }
|
||||
if (!CommandParser.IsBlockAllowed(p, "use", block)) return;
|
||||
|
||||
WeaponArgs args = new WeaponArgs();
|
||||
args.player = p;
|
||||
|
Loading…
x
Reference in New Issue
Block a user