Publish changes to fix mod, and add vault limitations
This commit is contained in:
parent
19573bbd56
commit
553ff429f3
130 changed files with 211075 additions and 208965 deletions
|
@ -85,14 +85,8 @@ public class HomeCommand {
|
|||
position = dest.Position.asMinecraftVector();
|
||||
rot = dest.Rotation.asMinecraftVector();
|
||||
|
||||
ServerLevel dimL=null;
|
||||
try {
|
||||
dimL = (ServerLevel)dest.getActualDimension();
|
||||
} catch (InvalidSideException e) {
|
||||
e.printStackTrace();
|
||||
return 1;
|
||||
}
|
||||
|
||||
ServerLevel dimL = (ServerLevel)dest.getActualDimension();
|
||||
|
||||
TeleportActioner.ApplyTeleportEffect(p);
|
||||
// Instantiate a Teleport Runner
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ import com.mojang.brigadier.CommandDispatcher;
|
|||
import dev.zontreck.libzontreck.chat.ChatColor;
|
||||
import dev.zontreck.libzontreck.chat.HoverTip;
|
||||
import dev.zontreck.otemod.OTEMod;
|
||||
import dev.zontreck.otemod.chat.ChatServerOverride;
|
||||
import dev.zontreck.otemod.configs.Profile;
|
||||
import net.minecraft.commands.CommandSourceStack;
|
||||
import net.minecraft.commands.Commands;
|
||||
|
@ -43,11 +44,11 @@ public class ShareItemInChatCommand {
|
|||
|
||||
Profile prof = Profile.get_profile_of(play.getUUID().toString());
|
||||
|
||||
MutableComponent component = new TextComponent(OTEMod.OTEPrefix + ChatColor.doColors(" !Dark_Green!" + is.getDisplayName()+" !White!-!Dark_Purple! Hover here to see the item that "+prof.name_color+prof.nickname+"!Dark_Purple! shared"));
|
||||
MutableComponent component = new TextComponent(OTEMod.OTEPrefix).append(is.getDisplayName()).append(new TextComponent(ChatColor.doColors(" !White!-!Dark_Purple! Hover here to see the item that "+prof.name_color+prof.nickname+"!Dark_Purple! shared")));
|
||||
Style style = Style.EMPTY.withFont(Style.DEFAULT_FONT);
|
||||
component = component.withStyle(style.withHoverEvent(HoverTip.getItem(is)));
|
||||
|
||||
play.server.sendMessage(component, play.getUUID());
|
||||
ChatServerOverride.broadcast(component, OTEMod.THE_SERVER);
|
||||
|
||||
}else {
|
||||
return 1;
|
||||
|
|
|
@ -67,7 +67,7 @@ public class RTPCommand {
|
|||
|
||||
if(b.isAir()){
|
||||
if(b2.isAir()){
|
||||
if(!b3.isAir())
|
||||
if(!b3.isAir() && !b3.is(Blocks.BEDROCK))
|
||||
{
|
||||
// Check names
|
||||
boolean valid=true;
|
||||
|
|
|
@ -55,13 +55,8 @@ public class WarpCommand {
|
|||
TeleportDestination dest = new TeleportDestination(NbtUtils.snbtToStructure(rs.getString("teleporter")));
|
||||
|
||||
|
||||
ServerLevel dimL = null;
|
||||
try{
|
||||
dimL=(ServerLevel) dest.getActualDimension();
|
||||
}catch(InvalidSideException e)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
ServerLevel dimL=(ServerLevel) dest.getActualDimension();
|
||||
|
||||
|
||||
final int type = rs.getInt("warptype");
|
||||
final ServerLevel f_dim = dimL;
|
||||
|
|
Reference in a new issue