Change EnderCrystalMarker to use endersignals instead

This commit is contained in:
fullwall 2013-10-21 00:38:51 +08:00
parent 1ae40ebc72
commit 64e33f234d
2 changed files with 8 additions and 9 deletions

View File

@ -1,24 +1,23 @@
package net.citizensnpcs.trait.waypoint; package net.citizensnpcs.trait.waypoint;
import net.minecraft.server.v1_6_R3.DamageSource; import net.minecraft.server.v1_6_R3.DamageSource;
import net.minecraft.server.v1_6_R3.EntityEnderCrystal; import net.minecraft.server.v1_6_R3.EntityEnderSignal;
import net.minecraft.server.v1_6_R3.World; import net.minecraft.server.v1_6_R3.World;
public class EntityEnderCrystalMarker extends EntityEnderCrystal { public class EntityEnderSignalMarker extends EntityEnderSignal {
public EntityEnderCrystalMarker(World world) { public EntityEnderSignalMarker(World world) {
super(world); super(world);
} }
public EntityEnderSignalMarker(World world, double d0, double d1, double d2) {
super(world, d0, d1, d2);
}
@Override @Override
public boolean damageEntity(DamageSource damagesource, float i) { public boolean damageEntity(DamageSource damagesource, float i) {
return false; return false;
} }
@Override
public boolean L() {
return false;
}
@Override @Override
public void l_() { public void l_() {
} }

View File

@ -41,6 +41,6 @@ public class WaypointMarkers {
} }
public Entity spawnMarker(World world, Location at) { public Entity spawnMarker(World world, Location at) {
return NMS.spawnCustomEntity(world, at, EntityEnderCrystalMarker.class, EntityType.ENDER_CRYSTAL); return NMS.spawnCustomEntity(world, at, EntityEnderSignalMarker.class, EntityType.ENDER_SIGNAL);
} }
} }