Skip to content

Commit 735db23

Browse files
committed
换上ghitori的修复代码
xiewuzhiying#78
1 parent 1e989c5 commit 735db23

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

forge/src/main/java/io/github/xiewuzhiying/vs_addition/forge/mixin/tacz/MixinEntityKineticBullet.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ private void getOriginPos(EntityKineticBullet instance, BlockHitResult result, V
6565
}
6666

6767
@Inject(
68-
method = "<init>(Lnet/minecraft/world/level/Level;Lnet/minecraft/world/entity/LivingEntity;Lnet/minecraft/world/item/ItemStack;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/resources/ResourceLocation;ZLcom/tacz/guns/resource/pojo/data/gun/GunData;Lcom/tacz/guns/resource/pojo/data/gun/BulletData;)V", at = @At("RETURN"),
68+
method = "<init>(Lnet/minecraft/world/entity/EntityType;Lnet/minecraft/world/level/Level;Lnet/minecraft/world/entity/LivingEntity;Lnet/minecraft/world/item/ItemStack;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/resources/ResourceLocation;ZLcom/tacz/guns/resource/pojo/data/gun/GunData;Lcom/tacz/guns/resource/pojo/data/gun/BulletData;)V",
69+
at = @At("RETURN"),
6970
remap = false
7071
)
71-
private void postInit(Level worldIn, LivingEntity throwerIn, ItemStack gunItem, ResourceLocation ammoId, ResourceLocation gunId, boolean isTracerAmmo, GunData gunData, BulletData bulletData, CallbackInfo ci) { final Ship ship = VSGameUtilsKt.getShipMountedTo(throwerIn);
72+
private void postInit(EntityType<? extends Projectile> type, Level worldIn, LivingEntity throwerIn, ItemStack gunItem, ResourceLocation ammoId, ResourceLocation gunId, ResourceLocation gunDisplayId, boolean isTracerAmmo, GunData gunData, BulletData bulletData, CallbackInfo ci) {
73+
final Ship ship = VSGameUtilsKt.getShipMountedTo(throwerIn);
7274
if (ship != null) {
7375
final Vector3d pos = VectorConversionsMCKt.toJOML(throwerIn.position());
7476
final Vector3d oPos = new Vector3d(throwerIn.xOld, throwerIn.yOld, throwerIn.zOld);

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx1700m -Dfile.encoding=UTF-8
22
# Identity
33
mod_name=vs_addition
44
mod_id=vs_addition
5-
mod_version=0.0.10.1
5+
mod_version=0.0.10.2
66
enabled_platforms=fabric,forge
77
archives_base_name=vs_addition
88
maven_group=io.github.xiewuzhiying

0 commit comments

Comments
 (0)