Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
d571edd2b9
Commit
baf44e326a
@ -20,6 +20,8 @@
|
|||||||
package de.steamwar.bausystem.linkage;
|
package de.steamwar.bausystem.linkage;
|
||||||
|
|
||||||
import de.steamwar.bausystem.BauSystem;
|
import de.steamwar.bausystem.BauSystem;
|
||||||
|
import de.steamwar.bausystem.utils.FlatteningWrapper;
|
||||||
|
import de.steamwar.bausystem.utils.NMSWrapper;
|
||||||
import lombok.experimental.UtilityClass;
|
import lombok.experimental.UtilityClass;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
|
||||||
@ -39,6 +41,12 @@ public class LinkageUtils {
|
|||||||
private Map<Class<?>, Object> objectMap = new HashMap<>();
|
private Map<Class<?>, Object> objectMap = new HashMap<>();
|
||||||
private Set<Field> fieldsToLink = new HashSet<>();
|
private Set<Field> fieldsToLink = new HashSet<>();
|
||||||
|
|
||||||
|
{
|
||||||
|
objectMap.put(BauSystem.class, BauSystem.getInstance());
|
||||||
|
objectMap.put(FlatteningWrapper.IFlatteningWrapper.class, FlatteningWrapper.impl);
|
||||||
|
objectMap.put(NMSWrapper.INMSWrapper.class, NMSWrapper.impl);
|
||||||
|
}
|
||||||
|
|
||||||
public void link() {
|
public void link() {
|
||||||
internalLinkOrUnlink(false, Linked.class);
|
internalLinkOrUnlink(false, Linked.class);
|
||||||
internalLinkFields();
|
internalLinkFields();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren