Skip to content

Commit

Permalink
Some more minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyyTV committed Jul 5, 2018
1 parent 6157a91 commit 00d38f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/jackyy/exchangers/handler/ExchangerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static void toggleForceDropItems(EntityPlayer player, ItemStack stack) {
ChatHelper.msgPlayer(player, toggle ? "msg.force_drop_items.on" : "msg.force_drop_items.off");
}

private static boolean isWhitelisted(World world, BlockPos pos) {
public static boolean isWhitelisted(World world, BlockPos pos) {
for (String block : ModConfig.misc.blocksWhitelist) {
if (world.getBlockState(pos).getBlock().getRegistryName().equals(new ResourceLocation(block))) {
return true;
Expand All @@ -130,7 +130,7 @@ private static boolean isWhitelisted(World world, BlockPos pos) {
return world.getBlockState(pos).getBlock().getRegistryName().equals("tconstruct:seared");
}

private static boolean isBlacklisted(World world, BlockPos pos) {
public static boolean isBlacklisted(World world, BlockPos pos) {
for (String block : ModConfig.misc.blocksBlacklist) {
if (world.getBlockState(pos).getBlock().getRegistryName().equals(new ResourceLocation(block))) {
return true;
Expand Down Expand Up @@ -241,7 +241,7 @@ public static void selectBlock(ItemStack stack, EntityPlayer player, World world
NBTUtil.writeBlockState(tagCompound.getCompoundTag("blockstate"), state);
}

private static Set<BlockPos> findSuitableBlocks(ItemStack stack, World world, EnumFacing sideHit, BlockPos pos, Block centerBlock, int centerMeta) {
public static Set<BlockPos> findSuitableBlocks(ItemStack stack, World world, EnumFacing sideHit, BlockPos pos, Block centerBlock, int centerMeta) {
Set<BlockPos> coordinates = new HashSet<>();
int mode = stack.getTagCompound().getInteger("mode");

Expand Down Expand Up @@ -394,7 +394,7 @@ private static void giveItem(World world, EntityPlayer player, ItemStack oldStac
}
}

static NBTTagCompound getTagCompound(ItemStack stack) {
public static NBTTagCompound getTagCompound(ItemStack stack) {
NBTTagCompound tagCompound = stack.getTagCompound();
if (tagCompound == null) {
tagCompound = new NBTTagCompound();
Expand Down

0 comments on commit 00d38f2

Please sign in to comment.