Skip to content

Commit 20f145e

Browse files
committed
Fix typo
1 parent 8a9d1e6 commit 20f145e

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

src/main/java/mrbysco/constructionstick/basics/ModTags.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
public class ModTags {
1111
public static final TagKey<Item> CONSTRUCTION_STICKS = ItemTags.create(ConstructionStick.modLoc("construction_sticks"));
1212

13-
public static final TagKey<Block> NON_REPLACABLE = BlockTags.create(ConstructionStick.modLoc("non_replacable"));
13+
public static final TagKey<Block> NON_REPLACEABLE = BlockTags.create(ConstructionStick.modLoc("non_replaceable"));
1414
}

src/main/java/mrbysco/constructionstick/basics/StickUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public static boolean isBlockRemovable(Level level, Player player, BlockPos pos)
250250
public static boolean isBlockReplaceable(Level level, Player player, BlockPos pos) {
251251
if (!isPositionModifiable(level, player, pos)) return false;
252252

253-
if (level.getBlockState(pos).is(ModTags.NON_REPLACABLE)) return false;
253+
if (level.getBlockState(pos).is(ModTags.NON_REPLACEABLE)) return false;
254254

255255
if (!player.isCreative()) {
256256
return !(level.getBlockState(pos).getDestroySpeed(level, pos) <= -1) && level.getBlockEntity(pos) == null;

src/main/java/mrbysco/constructionstick/data/server/BlockTagsGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public BlockTagsGenerator(PackOutput output, CompletableFuture<Provider> lookupP
1717

1818
@Override
1919
protected void addTags(Provider provider) {
20-
this.tag(ModTags.NON_REPLACABLE).addTag(Tags.Blocks.RELOCATION_NOT_SUPPORTED);
20+
this.tag(ModTags.NON_REPLACEABLE).addTag(Tags.Blocks.RELOCATION_NOT_SUPPORTED);
2121
}
2222
}

src/main/java/mrbysco/constructionstick/stick/action/ActionReplace.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public List<ISnapshot> getSnapshots(Level level, Player player, BlockHitResult b
5757
BlockState candidateBlock = level.getBlockState(currentCandidate);
5858
if (candidateBlock.is(newBlock.getBlock())) continue;
5959

60-
if (!targetBlock.is(ModTags.NON_REPLACABLE)) {
60+
if (!targetBlock.is(ModTags.NON_REPLACEABLE)) {
6161
ReplaceSnapshot snapshot = ReplaceSnapshot.get(level, player, currentCandidate, newBlock, blockItem);
6262
if (snapshot == null) continue;
6363
replaceSnapshots.add(snapshot);

0 commit comments

Comments
 (0)