Skip to content

Commit

Permalink
fixed: Beacons its not working with our custom metals.
Browse files Browse the repository at this point in the history
  • Loading branch information
TobibusFate committed Nov 24, 2022
1 parent 35b3325 commit 9327120
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Metallics Arts 1.19.2-1.3.3
# Metallics Arts 1.19.2-1.3.4


## Index 📋
Expand Down Expand Up @@ -92,8 +92,8 @@ CurseForge page:
- ~~Vials GUI, its not drawing correctly how much metal you have.~~ [v1.3.1]
- ~~Bug with ctrl+space steel flying, nuggets drops doesnt sinchronyze with server~~[v1.3.2]
- ~~Bendalloy do weird things in server~~[v1.3.2]
- Bronze allomantic is not drawing lines in multiplayer.
- Beacons its not working with our custom metals.
- ~~Bronze allomantic is not drawing lines in multiplayer.~~ [v1.3.2]
- ~~Beacons its not working with our custom metals.~~ [v1.3.4]
- Names consistency are bad.

**Improvements**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public class RemoveNuggetPacket {
public RemoveNuggetPacket(int slot, Player player) {
this.uuid = player.getUUID();
this.slot = slot;

}

private RemoveNuggetPacket(UUID uuid, int slot) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import net.rudahee.metallics_arts.modules.items.banners.Banners;
import net.rudahee.metallics_arts.setup.enums.extras.MetalsNBTData;

public class BannerTag extends TagsProvider<BannerPattern> {
public class ModBannerTagProvider extends TagsProvider<BannerPattern> {

public BannerTag(DataGenerator pGenerator, net.minecraftforge.common.data.ExistingFileHelper existingFileHelper) {
public ModBannerTagProvider(DataGenerator pGenerator, net.minecraftforge.common.data.ExistingFileHelper existingFileHelper) {
super(pGenerator, Registry.BANNER_PATTERN, MetallicsArts.MOD_ID, existingFileHelper);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package net.rudahee.metallics_arts.data.providers;

import net.minecraft.core.Registry;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.tags.TagsProvider;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.level.block.Block;
import net.rudahee.metallics_arts.MetallicsArts;
import net.rudahee.metallics_arts.setup.registries.ModBlock;

public class ModBeaconTagProvider extends TagsProvider<Block> {
public ModBeaconTagProvider(DataGenerator gen, net.minecraftforge.common.data.ExistingFileHelper existingFileHelper) {
super(gen,Registry.BLOCK,MetallicsArts.MOD_ID,existingFileHelper);
}

@Override
protected void addTags() {
for (Block block: ModBlock.BLOCK_METAL_BLOCKS.values()) {
this.tag(BlockTags.BEACON_BASE_BLOCKS).add(block);
}
for (Block block: ModBlock.BLOCK_GEMS_BLOCKS.values()) {
this.tag(BlockTags.BEACON_BASE_BLOCKS).add(block);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static void gatherData (GatherDataEvent event){
gen.addProvider(true, new ModBlockTagsProvider(gen, MetallicsArts.MOD_ID, event.getExistingFileHelper()));
gen.addProvider(true, new ModLootTableProvider(gen));
gen.addProvider(true, new ModRecipeProvider(gen));
gen.addProvider(event.includeServer(), new BannerTag(gen, event.getExistingFileHelper()));
gen.addProvider(event.includeServer(), new ModBannerTagProvider(gen, event.getExistingFileHelper()));
gen.addProvider(true,new ModBeaconTagProvider(gen,event.getExistingFileHelper()));
}
}

0 comments on commit 9327120

Please sign in to comment.