From ad227c2580861c3ed3e0e980ab0155eebe131660 Mon Sep 17 00:00:00 2001 From: baguchan Date: Thu, 16 Nov 2023 16:14:58 +0900 Subject: [PATCH] no flow seagrass in creative tab --- src/main/java/baguchan/better_with_aquatic/block/ModBlocks.java | 2 +- .../baguchan/better_with_aquatic/mixin/EntityPlayerMixin.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/baguchan/better_with_aquatic/block/ModBlocks.java b/src/main/java/baguchan/better_with_aquatic/block/ModBlocks.java index 9a250ad..5a41cb7 100644 --- a/src/main/java/baguchan/better_with_aquatic/block/ModBlocks.java +++ b/src/main/java/baguchan/better_with_aquatic/block/ModBlocks.java @@ -29,7 +29,7 @@ public class ModBlocks { .setLightOpacity(1) .setTextures("sea_grass.png") .setBlockDrop(sea_grass) - .setTags(BlockTags.IS_WATER, BlockTags.PLACE_OVERWRITES, BlockTags.SHEARS_DO_SILK_TOUCH) + .setTags(BlockTags.IS_WATER, BlockTags.PLACE_OVERWRITES, BlockTags.SHEARS_DO_SILK_TOUCH, BlockTags.NOT_IN_CREATIVE_MENU) .setBlockSound(BlockSounds.GRASS) .build(new BlockWaterPlantFlow("sea_grass_flow", findOpenIds(IDUtils.getCurrBlockId()), Material.water)); diff --git a/src/main/java/baguchan/better_with_aquatic/mixin/EntityPlayerMixin.java b/src/main/java/baguchan/better_with_aquatic/mixin/EntityPlayerMixin.java index f7c8cdb..62950a0 100644 --- a/src/main/java/baguchan/better_with_aquatic/mixin/EntityPlayerMixin.java +++ b/src/main/java/baguchan/better_with_aquatic/mixin/EntityPlayerMixin.java @@ -36,7 +36,6 @@ public void setSwimming(boolean p_20274_) { } else if (!p_20274_ && this.swimming) { this.heightOffset = 1.62f; - this.ySlideOffset = 0.0f; this.setSize(0.6F, 1.8F); float center = this.bbWidth / 2.0f; float heightOfMob = this.bbHeight;