mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-15 00:14:28 -04:00
Remove call to initShapeCache when registering blocks.
At some point in the 1.16 update cycle this was moved to be called after tags are (re)loaded and not when blocks are being registered.
This commit is contained in:
parent
84cce57f4d
commit
d1e1b46ce9
3 changed files with 2 additions and 5 deletions
build.gradle
fabric-registry-sync-v0
build.gradle
src/main/java/net/fabricmc/fabric/impl/registry/sync/trackers/vanilla
|
@ -12,7 +12,7 @@ plugins {
|
|||
def ENV = System.getenv()
|
||||
|
||||
class Globals {
|
||||
static def baseVersion = "0.10.5"
|
||||
static def baseVersion = "0.10.6"
|
||||
static def mcVersion = "20w19a"
|
||||
static def yarnVersion = "+build.1"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-registry-sync-v0"
|
||||
version = getSubprojectVersion(project, "0.3.1")
|
||||
version = getSubprojectVersion(project, "0.3.2")
|
||||
|
||||
dependencies {
|
||||
compile project(path: ':fabric-api-base', configuration: 'dev')
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
package net.fabricmc.fabric.impl.registry.sync.trackers.vanilla;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
|
@ -37,8 +36,6 @@ public final class BlockInitTracker implements RegistryEntryAddedCallback<Block>
|
|||
|
||||
@Override
|
||||
public void onEntryAdded(int rawId, Identifier id, Block object) {
|
||||
object.getStateManager().getStates().forEach(BlockState::initShapeCache);
|
||||
|
||||
// if false, getDropTableId() will generate an invalid drop table ID
|
||||
assert id.equals(registry.getId(object));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue