Merge pull request #18 from dragonruler1000/DEV

trying to fix issues with the window block and add a credits line to the mod info.
This commit is contained in:
dragonruler1000 2025-05-19 08:57:50 -05:00 committed by GitHub
commit afc8ae209e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 8 deletions

View file

@ -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

View file

@ -101,12 +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;
}
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);