mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-29 08:29:33 -05:00
Refactor gradle properties and clean up Window block logic
Improve clarity in `credits` and `mod_authors` formatting within `gradle.properties`. Removed redundant player message handling logic in `Window.java` to streamline block activation behavior.
This commit is contained in:
parent
ef61988f61
commit
a540f3bf60
3 changed files with 3 additions and 9 deletions
|
@ -45,6 +45,7 @@ mod_version=1.2
|
||||||
mod_group_id=us.minecraftchest2
|
mod_group_id=us.minecraftchest2
|
||||||
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
|
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
|
||||||
mod_authors=Minecraftchest2
|
mod_authors=Minecraftchest2
|
||||||
credits=Everyone on the Tardis Mod Discord and on the hackclub slack that helped me debug my mod.
|
# The mod credits.
|
||||||
|
credits=Everyone on the Tardis Mod Discord and on the hackclub slack that helped me debug my mod
|
||||||
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
|
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
|
||||||
mod_description=A Mod Inspired by "His Dark Materials" By Philip Pullman
|
mod_description=A Mod Inspired by "His Dark Materials" By Philip Pullman
|
||||||
|
|
|
@ -101,13 +101,6 @@ public class Window extends HorizontalBlock {
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) {
|
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) {
|
||||||
|
|
||||||
if (!worldIn.isRemote()) {
|
|
||||||
player.sendStatusMessage(new StringTextComponent("Client: Block activated!"), true);
|
|
||||||
return ActionResultType.SUCCESS;
|
|
||||||
}
|
|
||||||
player.sendMessage(new StringTextComponent("blockActivated"), player.getUniqueID());
|
|
||||||
|
|
||||||
if (!worldIn.isRemote()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit);
|
if (!worldIn.isRemote()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit);
|
||||||
if (player.isCrouching()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit);
|
if (player.isCrouching()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue