mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 11:37:42 +01:00
Change EnderCrystalMarker to use endersignals instead
This commit is contained in:
parent
c850e842bd
commit
9980fa7c05
@ -1,24 +1,23 @@
|
||||
package net.citizensnpcs.trait.waypoint;
|
||||
|
||||
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;
|
||||
|
||||
public class EntityEnderCrystalMarker extends EntityEnderCrystal {
|
||||
public EntityEnderCrystalMarker(World world) {
|
||||
public class EntityEnderSignalMarker extends EntityEnderSignal {
|
||||
public EntityEnderSignalMarker(World world) {
|
||||
super(world);
|
||||
}
|
||||
|
||||
public EntityEnderSignalMarker(World world, double d0, double d1, double d2) {
|
||||
super(world, d0, d1, d2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean damageEntity(DamageSource damagesource, float i) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean L() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void l_() {
|
||||
}
|
@ -41,6 +41,6 @@ public class WaypointMarkers {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user