Fix player not being teleported to pocket
This commit is contained in:
parent
4039f21587
commit
a18b498804
2 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
|
|||
|
||||
// Version info
|
||||
String baseversion = "3.0.0" // Set beta to 0 after changing this
|
||||
int beta = 3 // Set this to 0 for a non-beta release
|
||||
int beta = 4 // Set this to 0 for a non-beta release
|
||||
ext.mcversion = "1.12.2"
|
||||
ext.forgeversion = "14.23.1.2555"
|
||||
String mcpversion = "snapshot_20171007"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.dimdev.dimdoors.shared.commands;
|
||||
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import org.dimdev.dimdoors.DimDoors;
|
||||
import org.dimdev.dimdoors.shared.*;
|
||||
import org.dimdev.dimdoors.shared.pockets.*;
|
||||
|
@ -98,7 +99,7 @@ public class CommandPocket extends CommandBase {
|
|||
TileEntityRift entrance = (TileEntityRift) player.world.getTileEntity(pocket.getEntrance().getPos());
|
||||
entrance.teleportTo(player);
|
||||
} else {
|
||||
TeleportUtils.teleport(player, new Location(player.world, pocket.getX(), 20, pocket.getZ()), 0, 0);
|
||||
TeleportUtils.teleport(player, new Location(player.world, pocket.getOrigin().offset(EnumFacing.UP, 20)));
|
||||
}
|
||||
} else {
|
||||
DimDoors.log.info("Not executing command /" + getName() + " because it wasn't sent by a player.");
|
||||
|
|
Loading…
Reference in a new issue