Backport updates
This commit is contained in:
parent
6cec3dcbbc
commit
728b2467a3
766 changed files with 32570 additions and 268 deletions
|
@ -30,7 +30,7 @@ import dev.zontreck.libzontreck.util.ChatHelpers;
|
|||
import dev.zontreck.libzontreck.util.heads.HeadCache;
|
||||
import dev.zontreck.libzontreck.util.heads.HeadUtilities;
|
||||
import dev.zontreck.libzontreck.vectors.Vector2i;
|
||||
import dev.zontreck.libzontreck.vectors.Vector3;
|
||||
import dev.zontreck.libzontreck.vectors.Vector3d;
|
||||
import net.minecraft.commands.CommandSourceStack;
|
||||
import net.minecraft.commands.Commands;
|
||||
import net.minecraft.network.chat.*;
|
||||
|
@ -118,7 +118,7 @@ public class WarpsCommand {
|
|||
TeleportDestination dest = warp.destination;
|
||||
if(warpType == 1)
|
||||
{
|
||||
dest.Position = Vector3.ZERO;
|
||||
dest.Position = Vector3d.ZERO;
|
||||
RandomPositionFactory.beginRTP(p, warp.destination.getActualDimension());
|
||||
chestGui.close();
|
||||
return;
|
||||
|
@ -141,7 +141,11 @@ public class WarpsCommand {
|
|||
.withInfo(new LoreEntry.Builder().text(ChatHelpers.macro(appendType, warp.destination.Dimension).getString()).build());
|
||||
|
||||
ChatHelpers.broadcastTo(p, warpMsg, p.server);
|
||||
if(!(warps.size() > (2*9)))
|
||||
if(warps.size() > (2*9))
|
||||
{
|
||||
// Say to person
|
||||
ChatHelpers.broadcastTo(p, warpMsg, p.server);
|
||||
}else
|
||||
chestGui.withButton(button);
|
||||
|
||||
iconY++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue