mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
init
This commit is contained in:
19
patches/server/0003-MC-Dev-Fix.patch
Normal file
19
patches/server/0003-MC-Dev-Fix.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
||||
Date: Wed, 27 Oct 2021 20:46:44 +0800
|
||||
Subject: [PATCH] MC Dev Fix
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/ai/village/poi/PoiSection.java b/src/main/java/net/minecraft/world/entity/ai/village/poi/PoiSection.java
|
||||
index 75c1c4671fedb425dea20dc4fb0c6cb2304dee83..1e378d566721192b0c8711dacd3549737549087f 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/ai/village/poi/PoiSection.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/ai/village/poi/PoiSection.java
|
||||
@@ -30,7 +30,7 @@ public class PoiSection {
|
||||
private boolean isValid;
|
||||
|
||||
public static Codec<PoiSection> codec(Runnable updateListener) {
|
||||
- return RecordCodecBuilder.create((instance) -> {
|
||||
+ return RecordCodecBuilder.<PoiSection>create((instance) -> { // Leaves - dev fix
|
||||
return instance.group(RecordCodecBuilder.point(updateListener), Codec.BOOL.optionalFieldOf("Valid", Boolean.valueOf(false)).forGetter((poiSet) -> {
|
||||
return poiSet.isValid;
|
||||
}), PoiRecord.codec(updateListener).listOf().fieldOf("Records").forGetter((poiSet) -> {
|
||||
Reference in New Issue
Block a user