mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
remove some more obf helpers
This commit is contained in:
@@ -65,7 +65,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ int weight = 0;
|
||||
+ for (Object2IntMap.Entry<GossipType> entry : entries.object2IntEntrySet()) {
|
||||
+ if (gossipTypeFilter.test(entry.getKey())) {
|
||||
+ weight += entry.getIntValue() * entry.getKey().getWeight();
|
||||
+ weight += entry.getIntValue() * entry.getKey().weight;
|
||||
+ }
|
||||
+ }
|
||||
+ return weight;
|
||||
@@ -81,16 +81,3 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
}
|
||||
|
||||
public Stream<GossipContainer.GossipEntry> unpack(UUID target) {
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/ai/gossip/GossipType.java b/src/main/java/net/minecraft/world/entity/ai/gossip/GossipType.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/ai/gossip/GossipType.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/ai/gossip/GossipType.java
|
||||
@@ -0,0 +0,0 @@ public enum GossipType {
|
||||
public static final int REPUTATION_CHANGE_PER_EVERLASTING_MEMORY = 20;
|
||||
public static final int REPUTATION_CHANGE_PER_TRADE = 2;
|
||||
public final String id;
|
||||
- public final int weight;
|
||||
+ public final int weight; public int getWeight() { return weight; } // Paper - OBFHELPER
|
||||
public final int max;
|
||||
public final int decayPerDay;
|
||||
public final int decayPerTransfer;
|
||||
|
Reference in New Issue
Block a user