loggers
This commit is contained in:
1 parent
7d9418016a
commit
8b0b5412c4
9 files changed
+161
-13
No files matched your search
@@ -1,9 +1,11 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.PrimedTntEntity;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
import net.minecraft.world.World;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
@@ -27,11 +29,13 @@ public abstract class PrimedTntEntityMixin extends Entity
|
||||
private void initTNTLogger(World world_1, double double_1, double double_2, double double_3,
|
||||
LivingEntity livingEntity_1, CallbackInfo ci)
|
||||
{
|
||||
double double_4 = world_1.random.nextDouble() * 6.2831854820251465D;
|
||||
if(CarpetSettings.getBool("tntPrimerMomentumRemoved"))
|
||||
this.setVelocity(new Vec3d(0.0, 0.20000000298023224D, 0.0));
|
||||
if (LoggerRegistry.__tnt)
|
||||
{
|
||||
logHelper = new TNTLogHelper();
|
||||
logHelper.onPrimed(double_1, double_2, double_3, (float)double_4);
|
||||
|
||||
logHelper.onPrimed(double_1, double_2, double_3, getVelocity());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user