Skip to content

Commit

Permalink
0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Goby56 committed Dec 20, 2023
1 parent ec970bc commit a64dfae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.2+build.4
loader_version=0.14.24

# Mod Properties
mod_version=0.2.1-test-build-2
mod_version=0.2.1
maven_group=com.goby56.wakes
archives_base_name=wakes

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/goby56/wakes/WakesClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void onInitializeClient() {
EntityModelLayerRegistry.registerModelLayer(WakeModel.MODEL_LAYER, WakeModel::getTexturedModelData);

// Particles
ModParticles.registerParticles();
// ModParticles.registerParticles();

// Game events
ClientTickEvents.END_WORLD_TICK.register(new WakeTicker());
Expand All @@ -49,7 +49,7 @@ public void onInitializeClient() {
WorldRenderEvents.AFTER_TRANSLUCENT.register(new WakeTextureRenderer());
WorldRenderEvents.BEFORE_DEBUG_RENDER.register(new WakeDebugRenderer());

ClientLifecycleEvents.CLIENT_STARTED.register(new SplashPlaneRenderer());
// ClientLifecycleEvents.CLIENT_STARTED.register(new SplashPlaneRenderer());

// Commands
ClientCommandRegistrationCallback.EVENT.register(DebugCommand::register);
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/goby56/wakes/mixin/WakeSpawnerMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ private void tick(CallbackInfo info) {
this.producingWaterLevel = WakesUtils.getWaterLevel(this.world, ((Entity) (Object) this));

if (WakesClient.CONFIG_INSTANCE.getSpawningRule(((Entity) (Object) this)).spawnsWake) {
if (this.wakeParticle == null && vel.horizontalLength() > 1e-2) {
WakesUtils.spawnWakeSplashParticle(this.world, ((Entity) (Object) this));
}
// if (this.wakeParticle == null && vel.horizontalLength() > 1e-2) {
// WakesUtils.spawnWakeSplashParticle(this.world, ((Entity) (Object) this));
// }

WakesUtils.placeWakeTrail(((Entity) (Object) this));
} else {
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/goby56/wakes/utils/WakesUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public static void placeSingleSplash(Entity entity) {
instance.insert(new WakeNode(new Vec3d(entity.getX(), ((ProducesWake) entity).producingHeight(), entity.getZ()), (int) (WakesClient.CONFIG_INSTANCE.splashStrength * entity.fallDistance)));
}

public static void spawnWakeSplashParticle(World world, Entity owner) {
SplashPlaneParticleType wake = ModParticles.SPLASH_PLANE.withOwner(owner);
Vec3d pos = owner.getPos();
world.addParticle(wake, pos.x, pos.y, pos.z, 0, 0, 0);
}
// public static void spawnWakeSplashParticle(World world, Entity owner) {
// SplashPlaneParticleType wake = ModParticles.SPLASH_PLANE.withOwner(owner);
// Vec3d pos = owner.getPos();
// world.addParticle(wake, pos.x, pos.y, pos.z, 0, 0, 0);
// }

public static void placeWakeTrail(Entity entity) {
WakeHandler wakeHandler = WakeHandler.getInstance();
Expand Down

0 comments on commit a64dfae

Please sign in to comment.