Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-13 22:50:06 +01:00
Fix a NPE with brush using a global mask and no brush mask
Dieser Commit ist enthalten in:
Ursprung
fcd792191a
Commit
d82111a4fc
@ -177,6 +177,7 @@ public class BrushTool implements TraceTool {
|
|||||||
BlockBag bag = session.getBlockBag(player);
|
BlockBag bag = session.getBlockBag(player);
|
||||||
|
|
||||||
EditSession editSession = session.createEditSession(player);
|
EditSession editSession = session.createEditSession(player);
|
||||||
|
if (mask != null) {
|
||||||
Mask existingMask = editSession.getMask();
|
Mask existingMask = editSession.getMask();
|
||||||
if (existingMask == null) {
|
if (existingMask == null) {
|
||||||
editSession.setMask(mask);
|
editSession.setMask(mask);
|
||||||
@ -187,6 +188,7 @@ public class BrushTool implements TraceTool {
|
|||||||
newMask.add(mask);
|
newMask.add(mask);
|
||||||
editSession.setMask(newMask);
|
editSession.setMask(newMask);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
brush.build(editSession, target, material, size);
|
brush.build(editSession, target, material, size);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren