Disable POI patch for now

This commit is contained in:
DBotThePony 2024-08-27 22:26:37 +07:00
parent 81079a8565
commit 5ce88f7916
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -264,7 +264,8 @@ object MRegistry : IBlockItemRegistryAcceptor {
private fun registerEvent(event: RegisterEvent) {
// mojang moment
if (event.registryKey == Registries.POINT_OF_INTEREST_TYPE) {
// FIXME
/*if (event.registryKey == Registries.POINT_OF_INTEREST_TYPE) {
val reg = event.registry as Registry<PoiType>
event.register(Registries.POINT_OF_INTEREST_TYPE, PoiTypes.BUTCHER.location()) {
@ -276,7 +277,7 @@ object MRegistry : IBlockItemRegistryAcceptor {
val old = reg[PoiTypes.ARMORER] ?: throw IllegalStateException("POI with type ${PoiTypes.ARMORER} does not exist")
PoiType(Streams.concat(old.matchingStates.stream(), MBlocks.POWERED_BLAST_FURNACE.values.stream().flatMap { it.stateDefinition.possibleStates.stream() }).collect(ImmutableSet.toImmutableSet()), old.maxTickets, old.validRange)
}
}
}*/
}
fun initialize(bus: IEventBus) {