Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
soshimee committed Jun 28, 2024
1 parent b94b339 commit d76ec40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ org.gradle.jvmargs=-Xmx2g
baseGroup = com.github.soshimee.secretguide
mcVersion = 1.8.9
modid = secretguide
version = 1.0.2
version = 1.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void onTick(TickEvent.ClientTickEvent event) {
if (movingObjectPosition == null) continue;
if (SecretGuideConfig.secretAuraSlot > 0 && player.inventory.currentItem != SecretGuideConfig.secretAuraSlot - 1) {
player.inventory.currentItem = SecretGuideConfig.secretAuraSlot - 1;
continue;
break;
}
PacketUtils.sendPacket(new C08PacketPlayerBlockPlacement(position, movingObjectPosition.sideHit.getIndex(), player.getHeldItem(), (float) movingObjectPosition.hitVec.xCoord, (float) movingObjectPosition.hitVec.yCoord, (float) movingObjectPosition.hitVec.zCoord));
blocksCooldown.put(position, new Date().getTime());
Expand All @@ -191,7 +191,7 @@ public void onTick(TickEvent.ClientTickEvent event) {
if (movingObjectPosition.sideHit == EnumFacing.DOWN) continue;
if (SecretGuideConfig.secretAuraSlot > 0 && player.inventory.currentItem != SecretGuideConfig.secretAuraSlot - 1) {
player.inventory.currentItem = SecretGuideConfig.secretAuraSlot - 1;
continue;
break;
}
PacketUtils.sendPacket(new C08PacketPlayerBlockPlacement(position, movingObjectPosition.sideHit.getIndex(), player.getHeldItem(), (float) movingObjectPosition.hitVec.xCoord, (float) movingObjectPosition.hitVec.yCoord, (float) movingObjectPosition.hitVec.zCoord));
blocksCooldown.put(position, new Date().getTime());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.github.soshimee.secretguide.utils;

import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.init.Blocks;
import net.minecraft.util.BlockPos;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
Expand Down

0 comments on commit d76ec40

Please sign in to comment.