Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 214225c08d | |||
| 05b5894348 |
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
group 'baritone'
|
group 'baritone'
|
||||||
version '1.4.2'
|
version '1.4.3'
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import baritone.api.utils.accessor.IItemStack;
|
|||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import io.netty.util.concurrent.ThreadPerTaskExecutor;
|
import io.netty.util.concurrent.ThreadPerTaskExecutor;
|
||||||
import net.minecraft.block.*;
|
import net.minecraft.block.*;
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.resources.*;
|
import net.minecraft.resources.*;
|
||||||
@@ -296,10 +295,7 @@ public final class BlockOptionalMeta {
|
|||||||
return manager;
|
return manager;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<Item> drops(Block b) {
|
private static synchronized List<Item> drops(Block b) {
|
||||||
if (!Minecraft.getInstance().isOnExecutionThread()) {
|
|
||||||
throw new IllegalStateException();
|
|
||||||
}
|
|
||||||
return drops.computeIfAbsent(b, block -> {
|
return drops.computeIfAbsent(b, block -> {
|
||||||
ResourceLocation lootTableLocation = block.getLootTable();
|
ResourceLocation lootTableLocation = block.getLootTable();
|
||||||
if (lootTableLocation == LootTables.EMPTY) {
|
if (lootTableLocation == LootTables.EMPTY) {
|
||||||
|
|||||||
Reference in New Issue
Block a user