This commit is contained in:
gnembon committed 2020-03-31 02:03:04 -03:00
1 parent 1d86b4a223
commit 40ab2dda8d
5 files changed
+8 -8

No files matched your search

@@ -15,7 +15,7 @@ public interface ExplosionAccessor {
boolean isCreateFire();
@Accessor
Explosion.DestructionType getBlockDestructionType();
Explosion.DestructionType getDestructionType();
@Accessor
World getWorld();
@@ -46,7 +46,7 @@ public abstract class ProjectileEntityMixin extends Entity
}
}
@Inject(method = "method_24920", at = @At("RETURN")) // on block hit
@Inject(method = "onBlockHit", at = @At("RETURN"))
private void removeOnBlock(BlockHitResult blockHitResult, CallbackInfo ci)
{
if (LoggerRegistry.__projectiles && logHelper != null)
@@ -142,7 +142,7 @@ public class SpawnHelperMixin
return entityType.create(world_1);
}
@Redirect(method = "method_24930", at = @At(
@Redirect(method = "spawnEntitiesInChunk(Lnet/minecraft/entity/EntityCategory;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)V", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/server/world/ServerWorld;spawnEntity(Lnet/minecraft/entity/Entity;)Z"
))
@@ -165,7 +165,7 @@ public class SpawnHelperMixin
return false;
}
@Redirect(method = "method_24930", at = @At(
@Redirect(method = "spawnEntitiesInChunk(Lnet/minecraft/entity/EntityCategory;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)V", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/IWorld;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnType;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/entity/EntityData;"
))
@@ -176,7 +176,7 @@ public class SpawnHelperMixin
return null;
}
@Redirect(method = "method_24930", at = @At(
@Redirect(method = "spawnEntitiesInChunk(Lnet/minecraft/entity/EntityCategory;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)V", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/entity/player/PlayerEntity;squaredDistanceTo(DDD)D"
))