Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
70ce6ce831
This makes it easier for downstream projects (forks) to replace the version fetching system with their own. It is as simple as implementing an interface and overriding the default implementation of org.bukkit.UnsafeValues#getVersionFetcher() It also makes it easier for us to organize things like the version history feature. Lastly I have updated the paper implementation to check against the site API rather than against jenkins.
23 Zeilen
870 B
Diff
23 Zeilen
870 B
Diff
From 5b0db2592123e745f32863009745fc7171e7d6d7 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Thu, 19 Jul 2018 01:05:00 -0400
|
|
Subject: [PATCH] Don't change the Entity Random seed for squids
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntitySquid.java b/src/main/java/net/minecraft/server/EntitySquid.java
|
|
index d5dff4b88..77c0ed42f 100644
|
|
--- a/src/main/java/net/minecraft/server/EntitySquid.java
|
|
+++ b/src/main/java/net/minecraft/server/EntitySquid.java
|
|
@@ -19,7 +19,7 @@ public class EntitySquid extends EntityWaterAnimal {
|
|
|
|
public EntitySquid(EntityTypes<? extends EntitySquid> entitytypes, World world) {
|
|
super(entitytypes, world);
|
|
- this.random.setSeed((long) this.getId());
|
|
+ //this.random.setSeed((long) this.getId()); // Paper
|
|
this.bF = 1.0F / (this.random.nextFloat() + 1.0F) * 0.2F;
|
|
}
|
|
|
|
--
|
|
2.21.0
|
|
|