Skip to content

Commit 068a4da

Browse files
[fix] Fix right-click mechanical grindstone with empty hand causes crash. 2.1.5
1 parent f59fbf5 commit 068a4da

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Create: Enchantment Industry 2.1.4
1+
### Create: Enchantment Industry 2.1.5
22

33
#### Fix
4-
- Fix some crafting recipes (Such as Blaze Smithing Template) unavailable due to C:DP feature config formate changes
4+
- Fix right-click Mechanical Grindstone with empty hand causes crash

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mod_id = create_enchantment_industry
1717
mod_artifact_id = create-enchantment-industry
1818
mod_name = Create: Enchantment Industry
1919
mod_license = LGPL-3.0-or-later
20-
mod_version = 2.1.4
20+
mod_version = 2.1.5
2121
mod_group_id = plus.dragons.createenchantmentindustry
2222
mod_authors = DragonsPlus
2323
mod_description = Automatic Enchanting with Create.

src/main/java/plus/dragons/createenchantmentindustry/common/kinetics/grindstone/MechanicalGrindstoneBlock.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public MechanicalGrindstoneBlock(Properties properties) {
6262

6363
@Override
6464
protected ItemInteractionResult useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) {
65+
if (stack.isEmpty()) return ItemInteractionResult.PASS_TO_DEFAULT_BLOCK_INTERACTION;
6566
if (player.isSecondaryUseActive())
6667
return ItemInteractionResult.PASS_TO_DEFAULT_BLOCK_INTERACTION;
6768
var blockEntity = getBlockEntity(level, pos);

src/main/java/plus/dragons/createenchantmentindustry/common/registry/CEICreativeModeTabs.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import static plus.dragons.createenchantmentindustry.common.registry.CEIBlocks.*;
2525
import static plus.dragons.createenchantmentindustry.common.registry.CEIItems.*;
2626

27-
import com.simibubi.create.AllCreativeModeTabs;
2827
import net.minecraft.core.Holder;
2928
import net.minecraft.core.registries.Registries;
3029
import net.minecraft.resources.ResourceLocation;
@@ -47,7 +46,6 @@ public static void register(IEventBus modBus) {
4746
private static CreativeModeTab base(ResourceLocation id) {
4847
return CreativeModeTab.builder()
4948
.title(CEILang.description("itemGroup", id).component())
50-
.withTabsBefore(AllCreativeModeTabs.BASE_CREATIVE_TAB.getId())
5149
.icon(BLAZE_ENCHANTER::asStack)
5250
.displayItems(CEICreativeModeTabs::buildBaseContents)
5351
.withTabsBefore(ResourceLocation.fromNamespaceAndPath("create_dragons_plus", "base"))

src/main/java/plus/dragons/createenchantmentindustry/config/CEIServerConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public String getName() {
3939

4040
static class Comments {
4141
static final String kinetics = "Parameters and abilities of kinetic mechanisms";
42-
static String fluids = "Parameters and abilities of fluids and fluid operating components";
43-
static String enchantments = "Parameters and abilities of enchantment operating components";
44-
static String processing = "Parameters and abilities of processing mechanisms and appliances";
42+
static final String fluids = "Parameters and abilities of fluids and fluid operating components";
43+
static final String enchantments = "Parameters and abilities of enchantment operating components";
44+
static final String processing = "Parameters and abilities of processing mechanisms and appliances";
4545
}
4646
}

0 commit comments

Comments
 (0)