mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fix /cs [number] then doing /paste (without having copied anything) causing an error
This commit is contained in:
parent
44768389db
commit
b6f53cf60f
@ -34,7 +34,7 @@ namespace MCGalaxy.Commands.Building {
|
||||
}
|
||||
|
||||
public override void Use(Player p, string message) {
|
||||
if (p.CopySlots[p.CurrentCopySlot] == null) {
|
||||
if (p.CurrentCopySlot >= p.CopySlots.Count || p.CopySlots[p.CurrentCopySlot] == null) {
|
||||
Player.Message(p, "You haven't copied anything yet"); return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user