geforkt von Mirrors/Paper
Update for 1.6.5
By: Erik Broes <erikbroes@grum.nl>
Dieser Commit ist enthalten in:
Ursprung
95eebbac72
Commit
9a94449dbf
@ -39,7 +39,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>minecraft-server</artifactId>
|
<artifactId>minecraft-server</artifactId>
|
||||||
<version>1.6.4</version>
|
<version>1.6.5</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -59,7 +59,7 @@ import org.bukkit.util.config.Configuration;
|
|||||||
public final class CraftServer implements Server {
|
public final class CraftServer implements Server {
|
||||||
private final String serverName = "Craftbukkit";
|
private final String serverName = "Craftbukkit";
|
||||||
private final String serverVersion;
|
private final String serverVersion;
|
||||||
private final String protocolVersion = "1.6.4";
|
private final String protocolVersion = "1.6.5";
|
||||||
private final PluginManager pluginManager = new SimplePluginManager(this);
|
private final PluginManager pluginManager = new SimplePluginManager(this);
|
||||||
private final ServicesManager servicesManager = new SimpleServicesManager();
|
private final ServicesManager servicesManager = new SimpleServicesManager();
|
||||||
private final BukkitScheduler scheduler = new CraftScheduler(this);
|
private final BukkitScheduler scheduler = new CraftScheduler(this);
|
||||||
@ -366,8 +366,8 @@ public final class CraftServer implements Server {
|
|||||||
converter.convert(name, new ConvertProgressUpdater(console));
|
converter.convert(name, new ConvertProgressUpdater(console));
|
||||||
}
|
}
|
||||||
|
|
||||||
int dimension = environment.getId() + 200 + console.worlds.size();
|
int dimension = 200 + console.worlds.size();
|
||||||
WorldServer internal = new WorldServer(console, new ServerNBTManager(new File("."), name, true), name, dimension, seed);
|
WorldServer internal = new WorldServer(console, new ServerNBTManager(new File("."), name, true), name, dimension, seed, environment);
|
||||||
internal.z = console.worlds.get(0).z;
|
internal.z = console.worlds.get(0).z;
|
||||||
|
|
||||||
internal.tracker = new EntityTracker(console, dimension);
|
internal.tracker = new EntityTracker(console, dimension);
|
||||||
|
@ -19,7 +19,7 @@ public class CraftCreeper extends CraftMonster implements Creeper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPowered() {
|
public boolean isPowered() {
|
||||||
return getHandle().X().a(17) == 1;
|
return getHandle().Z().a(17) == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPowered(boolean powered) {
|
public void setPowered(boolean powered) {
|
||||||
@ -32,14 +32,14 @@ public class CraftCreeper extends CraftMonster implements Creeper {
|
|||||||
server.getPluginManager().callEvent(event);
|
server.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
if (!event.isCancelled()) {
|
if (!event.isCancelled()) {
|
||||||
getHandle().X().b(17, (byte)1);
|
getHandle().Z().b(17, (byte)1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
CreeperPowerEvent event = new CreeperPowerEvent(entity, CreeperPowerEvent.PowerCause.SET_OFF);
|
CreeperPowerEvent event = new CreeperPowerEvent(entity, CreeperPowerEvent.PowerCause.SET_OFF);
|
||||||
server.getPluginManager().callEvent(event);
|
server.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
if (!event.isCancelled()) {
|
if (!event.isCancelled()) {
|
||||||
getHandle().X().b(17, (byte)0);
|
getHandle().Z().b(17, (byte)0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,25 +172,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
EntityPlayer entity = getHandle();
|
EntityPlayer entity = getHandle();
|
||||||
|
|
||||||
if (oldWorld != newWorld) {
|
if (oldWorld != newWorld) {
|
||||||
entity.dimension = newWorld.dimension;
|
this.sendMessage("Multiworld teleporting disabled in this build. Nether works");
|
||||||
entity.netServerHandler.sendPacket(new Packet9Respawn((byte) location.getWorld().getEnvironment().getId()));
|
// this.entity = manager.a(entity, newWorld.dimension, false);
|
||||||
oldWorld.removeEntity(entity);
|
|
||||||
entity.dead = false;
|
|
||||||
|
|
||||||
entity.setPositionRotation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
|
||||||
if (entity.Q()) {
|
|
||||||
oldWorld.entityJoinedWorld(entity, false);
|
|
||||||
newWorld.addEntity(entity);
|
|
||||||
entity.setPositionRotation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
|
||||||
newWorld.entityJoinedWorld(entity, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
manager.a(entity);
|
|
||||||
entity.netServerHandler.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
|
||||||
entity.a((World)newWorld);
|
|
||||||
manager.a(entity, newWorld);
|
|
||||||
entity.a(entity.defaultContainer);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return entity.netServerHandler.teleport(location);
|
return entity.netServerHandler.teleport(location);
|
||||||
@ -214,7 +197,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void updateInventory() {
|
public void updateInventory() {
|
||||||
getHandle().syncInventory();
|
getHandle().a(getHandle().activeContainer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSleepingIgnored(boolean isSleeping) {
|
public void setSleepingIgnored(boolean isSleeping) {
|
||||||
|
@ -35,7 +35,7 @@ public class CraftWolf extends CraftAnimals implements Wolf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isTamed() {
|
public boolean isTamed() {
|
||||||
return getHandle().m_();
|
return getHandle().A();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTamed(boolean tame) {
|
public void setTamed(boolean tame) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren