Skip to content

Commit

Permalink
fix scp integration with server
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Dec 11, 2023
1 parent f463615 commit 4f34ca5
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package net.frozenblock.wilderwild.misc.mod_compat.scp;

import net.frozenblock.lib.FrozenBools;
import net.frozenblock.lib.FrozenMain;
import net.frozenblock.lib.FrozenSharedConstants;
import net.frozenblock.lib.math.api.AdvancedMath;
import net.frozenblock.lib.sound.api.FrozenSoundPackets;
import net.frozenblock.wilderwild.entity.AncientHornProjectile;
Expand Down Expand Up @@ -63,7 +63,7 @@ public SimpleCopperPipesIntegration() {
}

@Override
public void init() {
public void initPreFreeze() {
WilderSharedConstants.log("WILDERWILD AND COPPER PIPES SECRET LOG MESSAGE UNLOCKED!!!", true);
RegisterPipeNbtMethods.register(HORN, (nbt, level, pos, blockState, copperPipeEntity) -> {
if (!nbt.getCanOnlyBeUsedOnce() || nbt.getUseCount() < 1) {
Expand All @@ -78,7 +78,7 @@ public void init() {
projectileEntity.setShotByPlayer(true);
projectileEntity.canInteractWithPipe = false;
level.addFreshEntity(projectileEntity);
FrozenSoundPackets.createMovingRestrictionLoopingSound(level, projectileEntity, RegisterSounds.ENTITY_ANCIENT_HORN_PROJECTILE_LOOP, SoundSource.NEUTRAL, 1.0F, 1.0F, FrozenMain.id("default"), true);
FrozenSoundPackets.createMovingRestrictionLoopingSound(level, projectileEntity, RegisterSounds.ENTITY_ANCIENT_HORN_PROJECTILE_LOOP, SoundSource.NEUTRAL, 1.0F, 1.0F, FrozenSharedConstants.id("default"), true);
}
}
}
Expand Down Expand Up @@ -256,4 +256,9 @@ public boolean isCopperPipe(BlockState state) {
return false;
}

@Override
public void init() {

}

}

0 comments on commit 4f34ca5

Please sign in to comment.