Skip to content

Commit

Permalink
added utility method to BaseCover to causing a block update
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Sep 24, 2023
1 parent a32eea5 commit 84f1cb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/src/main/java/muramasa/antimatter/cover/BaseCover.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import muramasa.antimatter.network.packets.AbstractGuiEventPacket;
import muramasa.antimatter.network.packets.CoverGuiEventPacket;
import muramasa.antimatter.texture.Texture;
import muramasa.antimatter.util.AntimatterPlatformUtils;
import net.minecraft.core.Direction;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.resources.ResourceLocation;
Expand Down Expand Up @@ -261,4 +262,8 @@ public CoverFactory getFactory() {
return factory;
}

protected void markAndNotifySource(){
AntimatterPlatformUtils.markAndNotifyBlock(source().getTile().getLevel(), source().getTile().getBlockPos(), source().getTile().getLevel().getChunkAt(source().getTile().getBlockPos()), source().getTile().getBlockState(), source().getTile().getBlockState(), 1, 512);
}

}

0 comments on commit 84f1cb9

Please sign in to comment.