mirror of https://github.com/YatopiaMC/Yatopia.git
37 lines
1.6 KiB
Diff
37 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Paul Sauve <paul@technove.co>
|
|
Date: Sat, 31 Oct 2020 19:22:37 -0500
|
|
Subject: [PATCH] Use unmodifiableMap instead of making copy
|
|
|
|
Airplane Lite
|
|
Copyright (C) 2020 Technove LLC
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/LootTableInfo.java b/src/main/java/net/minecraft/server/LootTableInfo.java
|
|
index 268147484805e9fff298d2f5006f1c594c485342..1a87d73e116d3662bbc709adaf2ef7e4dd12f865 100644
|
|
--- a/src/main/java/net/minecraft/server/LootTableInfo.java
|
|
+++ b/src/main/java/net/minecraft/server/LootTableInfo.java
|
|
@@ -34,8 +34,8 @@ public class LootTableInfo {
|
|
this.world = worldserver;
|
|
this.d = function;
|
|
this.f = function1;
|
|
- this.h = ImmutableMap.copyOf(map);
|
|
- this.i = ImmutableMap.copyOf(map1);
|
|
+ this.h = java.util.Collections.unmodifiableMap(map); // AirplaneL
|
|
+ this.i = java.util.Collections.unmodifiableMap(map1); // AirplaneL
|
|
}
|
|
|
|
public boolean hasContextParameter(LootContextParameter<?> lootcontextparameter) {
|